Function at 0x4a2cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x240
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x23c], eax
mov edx, dword [esp + 0x24c]
mov eax, dword [esp + 0x244]
push ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24c]
push esi
xor esi, esi
mov dword [esp + 0x68], edx
lea ebp, [ecx + eax]
lea edx, [esp + 0x84]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x10], 8
mov dword [esp + 0x3c], esi
mov dword [esp + 8], edx
cmp ecx, esi
je 0x4a3296
lea ecx, [esp + 0x144]
mov dword [esp + 0x44], ecx
mov ecx, 0x100
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ecx
mov ecx, ebp
sub ecx, eax
push ecx
lea edx, [esp + 0x148]
push 0x3c
push eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call fcn.005fadc0
add esp, 0xc
cmp eax, esi
je 0x4a3296
push ebx
push edi
mov dword [esp + 0x68], eax
inc eax
mov esi, eax
mov dword [esp + 0x64], eax
cmp esi, ebp
jae 0x4a326c
mov al, byte [esi]
cmp al, 0x21
jne 0x4a2dbc
test byte [esp + 0x260], 1
jne 0x4a2da2
lea edx, [ebp + 3]
cmp esi, edx
jae 0x4a2da2
cmp byte [esi + 1], 0x2d
jne 0x4a2da2
cmp byte [esi + 2], 0x2d
jne 0x4a2da2
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esi + 3]
push eax
call fcn.0049f9e0
test eax, eax
je 0x4a2daf
jmp 0x4a2dad
mov ecx, dword [esp + 0x14]
push ebp
push esi
call fcn.0049fa50
mov esi, eax
cmp esi, ebp
je 0x4a326c
jmp 0x4a3246
cmp al, 0x2f
jne 0x4a2dd1
inc esi
mov dword [esp + 0x24], 1
cmp esi, ebp
jae 0x4a326c
mov al, byte [esi]
cmp al, 0x20
mov ebx, esi
jle 0x4a3246
lea ecx, [ecx]
cmp al, 0x7f
jge 0x4a2dff
cmp al, 0x3d
je 0x4a2dff
cmp al, 0x3e
je 0x4a2dff
cmp al, 0x2f
je 0x4a2dff
inc esi
cmp esi, ebp
jae 0x4a326c
mov al, byte [esi]
cmp al, 0x20
jg 0x4a2de0
cmp esi, ebx
je 0x4a3246
mov edi, esi
lea esp, [esp]
movsx eax, byte [esi]
cmp eax, 0x7f
ja 0x4a2e32
movzx ecx, al
push ecx
call fcn.005fa6d1
add esp, 4
test eax, eax
je 0x4a2e32
inc esi
cmp esi, ebp
jb 0x4a2e10
jmp 0x4a326c
cmp dword [esp + 0x24], 0
je 0x4a2e42
cmp byte [esi], 0x3e
jne 0x4a3242
mov ecx, dword [esp + 0x14]
push edi
push ebx
call fcn.004a26f0
test eax, eax
jne 0x4a2e5b
mov dword [esp + 0x3c], 1
jmp 0x4a2e75
mov ecx, dword [esp + 0x14]
push 1
push edi
push ebx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x4c], 0
call fcn.0049fc30
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 1
jmp 0x4a2e90
mov dword [esp + 0x20], 1
movsx eax, byte [esi]
cmp eax, 0x7f
ja 0x4a2eba
movzx eax, al
push eax
call fcn.005fa6d1
add esp, 4
test eax, eax
je 0x4a2eba
inc esi
cmp esi, ebp
jb 0x4a2e98
jmp 0x4a326c
mov al, byte [esi]
cmp al, 0x2f
je 0x4a318b
cmp al, 0x3e
je 0x4a31bf
cmp al, 0x20
mov ecx, esi
mov dword [esp + 0x40], ecx
jle 0x4a2ef5
cmp al, 0x7f
jge 0x4a2ef5
cmp al, 0x3d
je 0x4a2ef5
cmp al, 0x3e
je 0x4a2ef5
cmp al, 0x2f
je 0x4a2ef5
inc esi
cmp esi, ebp
jae 0x4a326c
mov al, byte [esi]
cmp al, 0x20
jg 0x4a2ed6
mov dword [esp + 0x30], esi
cmp ecx, esi
je 0x4a3242
movsx eax, byte [esi]
cmp eax, 0x7f
ja 0x4a2f23
movzx ecx, al
push ecx
call fcn.005fa6d1
add esp, 4
test eax, eax
je 0x4a2f23
inc esi
cmp esi, ebp
jb 0x4a2f01
jmp 0x4a326c
mov al, byte [esi]
cmp al, 0x20
jle 0x4a2f39
cmp al, 0x7f
jge 0x4a2f39
cmp al, 0x3d
je 0x4a2f39
cmp al, 0x3e
jne 0x4a304a
cmp al, 0x2f
je 0x4a304a
cmp al, 0x3e
je 0x4a304a
cmp al, 0x3d
jne 0x4a3242
inc esi
cmp esi, ebp
jae 0x4a326c
lea ebx, [ebx]
movsx eax, byte [esi]
cmp eax, 0x7f
ja 0x4a2f82
movzx edx, al
push edx
call fcn.005fa6d1
add esp, 4
test eax, eax
je 0x4a2f82
inc esi
cmp esi, ebp
jb 0x4a2f60
jmp 0x4a326c
mov al, byte [esi]
cmp al, 0x22
je 0x4a2fd4
cmp al, 0x27
je 0x4a2fd4
mov ebx, esi
mov dword [esp + 0x2c], ebx
movsx eax, byte [esi]
cmp eax, 0x7f
ja 0x4a2faa
movzx eax, al
push eax
call fcn.005fa6d1
add esp, 4
test eax, eax
jne 0x4a2fb9
cmp byte [esi], 0x3e
je 0x4a2fb9
inc esi
cmp esi, ebp
jb 0x4a2f92
jmp 0x4a326c
mov dword [esp + 0x38], esi
cmp ebx, esi
je 0x4a3242
mov edi, esi
mov dword [esp + 0x20], 2
jmp 0x4a305a
mov ebx, esi
inc esi
xor edi, edi
mov cl, al
mov dword [esp + 0x34], ebx
cmp esi, ebp
jae 0x4a326c
mov al, byte [esi]
mov edx, esi
mov dword [esp + 0x2c], edx
cmp al, cl
je 0x4a3017
test edi, edi
jne 0x4a3004
cmp al, 0xa
jne 0x4a3008
mov esi, edx
mov edi, 1
jmp 0x4a3011
cmp al, 0x3e
je 0x4a3017
inc esi
cmp esi, ebp
jae 0x4a326c
mov al, byte [esi]
cmp al, cl
jne 0x4a2ff3
mov dword [esp + 0x38], esi
cmp byte [esi], cl
jne 0x4a3246
inc esi
cmp esi, ebp
jae 0x4a326c
test byte [esp + 0x260], 2
mov edi, esi
mov dword [esp + 0x20], 2
je 0x4a305e
mov dword [esp + 0x20], 6
jmp 0x4a305e
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x3c], 0
jne 0x4a2e90
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.004a1060
test eax, eax
je 0x4a2e90
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp ecx, eax
mov ebp, ecx
jge 0x4a310d
add ebp, ebp
cmp ebp, eax
jl 0x4a3092
cmp ebp, ecx
je 0x4a310d
xor ecx, ecx
mov eax, ebp
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005cfaa6
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
push ebx
call fcn.005fa190
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x4a30f9
cmp dword [esp + 0x18], 1
jle 0x4a30ec
mov edx, dword [esp + 0x10]
push edx
call fcn.005cfa9b
jmp 0x4a30f6
mov eax, dword [esp + 0x10]
push eax
call fcn.005cfa9b
add esp, 4
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x44], 1
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
push 1
mov dword [edx + ebp + 0x10], ecx
mov ecx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x58]
push edx
call fcn.0049fc30
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [ecx + ebp + 0x14], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x58]
push edx
call fcn.0049fc30
mov eax, dword [esp + 0x10]
sub edi, ebx
mov dword [eax + ebp + 8], ebx
mov dword [eax + ebp + 0xc], edi
mov eax, 1
add dword [esp + 0x1c], eax
add dword [esp + 0x28], eax
add ebp, 0x18
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x6c]
jmp 0x4a2e90
inc esi
cmp esi, ebp
jae 0x4a326c
movsx eax, byte [esi]
cmp eax, 0x7f
ja 0x4a31b6
movzx eax, al
push eax
call fcn.005fa6d1
add esp, 4
test eax, eax
je 0x4a31b6
inc esi
cmp esi, ebp
jb 0x4a3194
jmp 0x4a326c
cmp byte [esi], 0x3e
jne 0x4a3242
cmp dword [esp + 0x3c], 0
je 0x4a31d1
inc esi
cmp esi, ebp
jae 0x4a326c
jmp 0x4a3246
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], ecx
test ecx, ecx
jle 0x4a320b
mov eax, dword [esp + 0x10]
add eax, 0x14
mov edi, dword [eax - 4]
add edi, edx
mov dword [eax - 0x14], edi
mov edi, dword [eax]
add edi, edx
mov dword [eax - 0x10], edi
add eax, 0x18
sub ecx, 1
jne 0x4a31f4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], edx
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x78]
inc esi
push edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], esi
call fcn.004a27d0
cmp esi, ebp
jae 0x4a326c
jmp 0x4a3246
mov esi, dword [esp + 0x64]
mov eax, ebp
sub eax, esi
push eax
xor edi, edi
push 0x3c
push esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call fcn.005fadc0
add esp, 0xc
cmp eax, edi
jne 0x4a2d58
cmp dword [esp + 0x58], 0
pop edi
pop ebx
je 0x4a3282
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005cfa9b
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x4a3296
mov edx, dword [esp + 8]
push edx
call fcn.005cfa9b
add esp, 4
mov ecx, dword [esp + 0x244]
pop esi
pop ebp
xor ecx, esp
call fcn.005f85e7
add esp, 0x240
ret 0x10