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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 4]
dec eax
mov dword [esp + 0x54], eax
mov eax, 1
shl eax, cl
dec eax
mov ebx, dword [esi + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov ebp, dword [esi + 0x28]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
mov dword [eax], edi
cmp ebx, 0xffffffff
je 0x4a3ea6
cmp dword [esp + 0x1c], edi
jne 0x4a3739
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x50], al
cmp ebx, 0xfffffffe
jne 0x4a386b
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x34], 1
mov ecx, dword [eax + 4]
mov eax, 0x300
add ecx, dword [esp + 0x44]
shl eax, cl
mov dword [esp + 0x30], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
lea ecx, [eax*2 + 0xe6c]
mov dword [esp + 0x48], 0
shr ecx, 1
mov eax, 0x4000400
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
mov dword [esp + 0x28], 0
rep stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov ecx, dword [esp + 0x20]
xor esi, esi
xor edx, edx
mov dword [esp + 0x3c], ebp
lea ebx, [ebp + 5]
mov byte [eax + ecx - 1], 0
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], 0xffffffff
cmp edx, esi
jne 0x4a3828
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [eax]
call eax
mov edx, dword [esp + 0x74]
mov edi, eax
mov eax, dword [esp + 0x58]
add esp, 0xc
mov dword [esp + 0x7c], edi
lea esi, [eax + edx]
mov dword [esp + 0x6c], esi
test eax, eax
jne 0x4a3828
mov dword [esp + 0x80], 1
or al, 0xff
jmp 0x4a382f
mov al, byte [edx]
inc edx
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x74]
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [esp + 0x74], ecx
sub ebx, 1
jne 0x4a37e3
test edi, edi
jne 0x4a3ed6
cmp dword [esp + 0x80], ebp
jne 0x4a3ec9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ebp
mov bl, byte [eax + ecx - 1]
jmp 0x4a38de
test ebx, ebx
je 0x4a38c4
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
cmp edi, dword [esp + 0x94]
jae 0x4a38b0
mov eax, ebp
sub eax, ecx
cmp eax, edx
lea ecx, [eax + edx]
cmovb ecx, eax
mov al, byte [ecx + esi]
mov ecx, dword [esp + 0x90]
mov byte [esi + ebp], al
mov byte [edi + ecx], al
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
inc edi
cmp eax, edx
cmovne ebp, eax
sub ebx, 1
jne 0x4a3877
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], ebp
test ebp, ebp
jne 0x4a38d6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov bl, byte [eax + ecx - 1]
jmp 0x4a38de
mov eax, dword [esp + 0x20]
mov bl, byte [eax + ebp - 1]
mov ecx, dword [esp + 0x24]
xor edi, edi
xor eax, eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], eax
cmp ecx, dword [esp + 0x94]
jae 0x4a3e3e
mov dl, 8
sub dl, byte [esp + 0x44]
mov byte [esp + 0x12], dl
nop dword [eax + eax]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
add esi, ecx
mov ecx, esi
mov dword [esp + 0x5c], edx
and ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], ecx
test edi, edi
jne 0x4a3ed6
test eax, eax
jne 0x4a3ec9
mov eax, dword [esp + 0x18]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x2c]
lea edi, [ecx + eax*2]
lea eax, [esp + 0x68]
push eax
push edi
call fcn.004a4080
add esp, 8
test eax, eax
jne 0x4a3ab1
mov cl, byte [esp + 0x12]
and esi, dword [esp + 0x58]
mov edi, dword [esp + 0x2c]
movzx eax, bl
add edi, 0xe6c
shr eax, cl
mov ebx, 1
mov ecx, dword [esp + 0x44]
shl esi, cl
add eax, esi
imul eax, eax, 0x600
add edi, eax
cmp dword [esp + 0x18], 7
jl 0x4a3a22
mov edx, dword [esp + 0x1c]
mov eax, ebp
sub eax, dword [esp + 0x14]
cmp eax, edx
lea ecx, [eax + edx]
cmovb ecx, eax
mov eax, dword [esp + 0x20]
mov al, byte [ecx + eax]
movzx esi, al
add al, al
mov byte [esp + 0x13], al
lea eax, [esp + 0x68]
push eax
shr esi, 7
lea eax, [esi + 1]
shl eax, 8
add eax, ebx
lea eax, [edi + eax*2]
push eax
call fcn.004a4080
add ebx, ebx
add esp, 8
or ebx, eax
cmp esi, eax
jne 0x4a39f1
cmp ebx, 0x100
jge 0x4a3a42
mov al, byte [esp + 0x13]
jmp 0x4a39b6
cmp ebx, 0x100
jge 0x4a3a42
nop dword [eax]
lea eax, [esp + 0x68]
push eax
lea esi, [ebx + ebx]
lea eax, [esi + edi]
push eax
call fcn.004a4080
mov ebx, eax
add esp, 8
or ebx, esi
cmp ebx, 0x100
jl 0x4a3a00
jmp 0x4a3a42
lea eax, [esp + 0x68]
push eax
lea esi, [ebx + ebx]
lea eax, [esi + edi]
push eax
call fcn.004a4080
mov ebx, eax
add esp, 8
or ebx, esi
cmp ebx, 0x100
jl 0x4a3a22
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x28]
mov byte [ecx + eax], bl
inc ecx
cmp esi, dword [esp + 0x1c]
lea eax, [esi + 1]
mov dword [esp + 0x24], ecx
cmovae eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov byte [eax + ebp], bl
lea eax, [ebp + 1]
xor ebp, ebp
cmp eax, dword [esp + 0x1c]
cmovne ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ebp
cmp eax, 4
jge 0x4a3a94
mov dword [esp + 0x18], 0
jmp 0x4a3e1d
cmp eax, 0xa
jge 0x4a3aa5
sub eax, 3
mov dword [esp + 0x18], eax
jmp 0x4a3e1d
sub eax, 6
mov dword [esp + 0x18], eax
jmp 0x4a3e1d
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x2c]
push eax
lea eax, [ebx + 0xc0]
lea eax, [esi + eax*2]
push eax
call fcn.004a4080
add esp, 8
cmp eax, 1
jne 0x4a3c1e
lea eax, [esp + 0x68]
push eax
lea eax, [ebx + 0xcc]
lea eax, [esi + eax*2]
push eax
call fcn.004a4080
add esp, 8
test eax, eax
lea eax, [esp + 0x68]
push eax
jne 0x4a3b73
lea eax, [edi + 0x1e0]
push eax
call fcn.004a4080
add esp, 8
test eax, eax
jne 0x4a3be4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4a3ec9
mov edx, dword [esp + 0x1c]
cmp ebx, 7
mov ecx, dword [esp + 0x24]
setge al
lea eax, [eax*2 + 9]
mov dword [esp + 0x18], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
cmp eax, edx
lea ebx, [eax + edx]
cmovb ebx, eax
mov eax, dword [esp + 0x20]
mov bl, byte [ebx + eax]
mov byte [eax + ebp], bl
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x90]
mov byte [ecx + ebp], bl
xor ebp, ebp
inc ecx
cmp eax, edx
cmovne ebp, eax
cmp esi, edx
lea eax, [esi + 1]
cmovae eax, esi
mov dword [esp + 0x28], eax
jmp 0x4a3e15
lea eax, [ebx + 0xd8]
lea eax, [esi + eax*2]
push eax
call fcn.004a4080
add esp, 8
test eax, eax
jne 0x4a3b9d
mov eax, dword [esp + 0x30]
mov esi, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], esi
jmp 0x4a3be8
lea eax, [esp + 0x68]
push eax
lea eax, [ebx + 0xe4]
lea eax, [esi + eax*2]
push eax
call fcn.004a4080
mov ecx, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0x30]
test eax, eax
mov eax, dword [esp + 0x5c]
cmovne ecx, dword [esp + 0x34]
cmovne eax, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
mov esi, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], esi
jmp 0x4a3be8
mov esi, dword [esp + 0x14]
push dword [esp + 0x4c]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x34]
add eax, 0xa68
push eax
call fcn.004a3ee0
add esp, 0xc
mov edi, eax
cmp ebx, 7
mov eax, 0xb
mov ecx, 8
cmovl eax, ecx
mov dword [esp + 0x18], eax
jmp 0x4a3db2
mov eax, dword [esp + 0x34]
cmp ebx, 7
mov edi, dword [esp + 0x30]
mov ecx, 7
push dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, 0xa
cmovl eax, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esi + 0x664]
push eax
call fcn.004a3ee0
mov edi, eax
lea eax, [esp + 0x74]
push eax
cmp edi, 4
mov dword [esp + 0x48], edi
mov eax, 3
cmovl eax, edi
shl eax, 7
add eax, 0x360
add eax, esi
push 6
push eax
call fcn.004a4130
mov edx, eax
add esp, 0x18
mov esi, edx
cmp edx, 4
jl 0x4a3da5
mov ecx, edx
and esi, 1
sar ecx, 1
or esi, 2
dec ecx
shl esi, cl
mov dword [esp + 0x14], esi
cmp edx, 0xe
jge 0x4a3cd2
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x34]
mov eax, esi
sub eax, edx
add ecx, 0x55e
lea eax, [ecx + eax*2]
push eax
call fcn.004a4260
add esp, 0xc
jmp 0x4a3da3
mov edi, dword [esp + 0x70]
xor ebx, ebx
mov esi, dword [esp + 0x74]
add ecx, 0xfffffffc
mov dword [esp + 0x60], ecx
je 0x4a3d75
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
lea eax, [ebx + ebx]
shr edi, 1
mov ebx, eax
or ebx, 1
cmp esi, edi
cmovb ebx, eax
mov eax, esi
sub eax, edi
cmp esi, edi
cmovb eax, esi
mov esi, eax
cmp edi, 0x1000000
jae 0x4a3d6c
shl edi, 8
cmp ecx, edx
jne 0x4a3d5d
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x64]
lea edx, [eax + ecx]
mov dword [esp + 0x6c], edx
test eax, eax
jne 0x4a3d5d
mov dword [esp + 0x80], 1
or al, 0xff
jmp 0x4a3d64
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x68], ecx
shl esi, 8
movzx eax, al
or esi, eax
sub ebp, 1
jne 0x4a3cf5
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x68]
mov dword [esp + 0x70], edi
push eax
mov eax, dword [esp + 0x30]
add eax, 0x644
mov dword [esp + 0x78], esi
push 4
push eax
call fcn.004a4260
mov esi, dword [esp + 0x20]
add esp, 0xc
mov edi, dword [esp + 0x38]
shl ebx, 4
add eax, ebx
add esi, eax
add esi, 1
mov dword [esp + 0x14], esi
je 0x4a3eb0
mov ecx, dword [esp + 0x28]
add edi, 2
cmp esi, ecx
ja 0x4a3ec9
mov edx, dword [esp + 0x1c]
mov eax, edx
sub eax, ecx
add ecx, edi
cmp eax, edi
cmovbe ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub eax, esi
cmp eax, edx
lea ebx, [eax + edx]
cmovb ebx, eax
mov eax, dword [esp + 0x20]
mov bl, byte [ebx + eax]
mov byte [eax + ebp], bl
lea eax, [ebp + 1]
xor ebp, ebp
cmp eax, edx
cmovne ebp, eax
mov eax, dword [esp + 0x90]
mov byte [ecx + eax], bl
inc ecx
sub edi, 1
je 0x4a3e11
cmp ecx, dword [esp + 0x94]
jb 0x4a3dd8
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x94]
jae 0x4a3e36
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
jmp 0x4a3910
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x48], eax
mov al, byte [esp + 0x50]
mov byte [ebx + 0x4c], al
mov eax, dword [esp + 0x98]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], esi
mov dword [eax], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
jmp 0x4a3e3e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x74
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret