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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [ebp - 8], 0
push esi
push edi
xor esi, esi
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx + 0x98]
mov edi, dword [ebx + 0x58]
and al, 0xc
mov ecx, dword [ebx]
add edi, 0x28
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edi
cmp al, 4
je 0x4a39f6
mov eax, dword [ecx + 0x20]
and eax, 0x1000000
mov dword [ebp - 0x14], esi
or eax, esi
je 0x4a39fd
mov dword [ebp - 0x14], 1
mov edx, 8
mov ecx, edi
call fcn.004a3780
cmp dword [ebx + 0x28], 7
mov dword [ebx + 0x78], esi
jne 0x4a3a5a
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x51], 0
jne 0x4a3a4e
cmp byte [eax + 0x52], 0
jne 0x4a3a4e
mov byte [eax + 0x51], 1
cmp dword [eax + 0xbc], esi
jle 0x4a3a37
mov dword [eax + 0x110], 1
inc dword [eax + 0x118]
mov eax, dword [eax + 0xf4]
test eax, eax
je 0x4a3a4e
mov dword [eax + 0xc], 7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x14], esi
je 0x4a3aeb
mov eax, dword [ebx + 0x58]
add eax, 0x168
mov dword [ebp - 0x10], eax
test byte [eax + 8], 0x10
je 0x4a3a8b
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
shr edx, 2
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], esi
jmp 0x4a3a8d
xor edx, edx
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
cmp edx, 2
jb 0x4a3ad3
lea eax, [edx - 1]
xor edi, edi
mov dword [ebp - 0x1c], eax
xor edx, edx
mov ebx, eax
nop
mov eax, dword [esi + ecx*4]
add edi, dword [eax + 4]
mov eax, dword [esi + ecx*4 + 4]
add ecx, 2
add edx, dword [eax + 4]
cmp ecx, ebx
jl 0x4a3ab0
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x18]
cmp ecx, edx
mov edx, dword [ebp - 0xc]
jge 0x4a3ae0
mov eax, dword [esi + ecx*4]
add edx, dword [eax + 4]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
add edx, eax
mov dword [ebp - 0xc], edx
mov esi, dword [ebx + 0x24]
lea eax, [esi + 1]
mov dword [ebx + 0x24], eax
cmp esi, edx
jge 0x4a3c1c
mov edx, dword [ebp - 0x20]
nop
mov eax, dword [ebx + 0x6c]
cmp esi, eax
jge 0x4a3b0c
mov eax, dword [ebx + 0x68]
jmp 0x4a3b32
sub esi, eax
xor ecx, ecx
mov eax, dword [edx]
mov eax, dword [eax + 4]
cmp esi, eax
jl 0x4a3b2d
nop dword [eax]
inc ecx
sub esi, eax
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 4]
cmp esi, eax
jge 0x4a3b20
mov eax, dword [edx + ecx*4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 4], eax
je 0x4a3beb
cmp byte [eax + 1], 0xfc
jne 0x4a3beb
mov ecx, dword [ebp - 8]
lea eax, [ecx*4]
mov dword [ebp - 0x1c], eax
add eax, 4
mov dword [ebp - 0x20], eax
xor eax, eax
test ecx, ecx
jle 0x4a3b84
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x28]
cmp dword [edx + eax*4], edi
je 0x4a3b81
inc eax
cmp eax, ecx
jl 0x4a3b77
mov edi, dword [ebp - 0x18]
cmp eax, ecx
jne 0x4a3beb
mov edx, dword [ebp - 0x20]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0x10]
setne al
push eax
call fcn.004a0820
add esp, 4
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x4a3c31
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ecx + edx], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 8], ecx
or word [eax + 8], 0x10
lea eax, [ecx*4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
add edi, dword [eax + 4]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x18]
jmp 0x4a3bee
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x98]
and al, 0xc
cmp al, 8
jb 0x4a3c3f
mov al, byte [ecx]
cmp al, 0xab
je 0x4a3c3f
cmp al, 0x3d
jne 0x4a3c0a
cmp dword [ebx + 0x24], 1
jg 0x4a3c3f
mov esi, dword [ebx + 0x24]
lea eax, [esi + 1]
mov dword [ebx + 0x24], eax
cmp esi, dword [ebp - 0xc]
jl 0x4a3b00
mov esi, 0x65
mov dword [ebx + 0x28], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x110], 0
je 0x4a3c79
mov eax, dword [str.interrupted]
mov ecx, str.unknown_error
test eax, eax
mov dword [ebx + 0x28], 9
mov esi, 1
cmovne ecx, eax
push ecx
push ebx
call fcn.004a1fd0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x98]
mov edx, 4
and cl, 0xc
cmp cl, dl
jne 0x4a3cde
mov word [edi + 8], dx
mov eax, esi
mov esi, dword [ebp - 4]
cdq
mov dword [edi], eax
mov eax, 0xa02
mov dword [edi + 4], edx
mov word [edi + 0x30], ax
movzx eax, byte [esi]
mov ecx, dword [eax*4 + 0x6d1a08]
mov dword [edi + 0x38], ecx
test ecx, ecx
jne 0x4a3cc0
mov dword [edi + 0x34], ecx
mov byte [edi + 0x32], 1
add edi, 0x50
jmp 0x4a3ce1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3cc3
sub ecx, edx
mov byte [edi + 0x32], 1
and ecx, 0x3fffffff
mov dword [edi + 0x34], ecx
add edi, 0x50
jmp 0x4a3ce1
mov esi, dword [ebp - 4]
mov ecx, 4
mov word [edi + 8], cx
mov eax, dword [esi + 4]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
mov word [edi + 0x30], cx
mov eax, dword [esi + 8]
cdq
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
mov word [edi + 0x58], cx
mov eax, dword [esi + 0xc]
cdq
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
add edi, 0x78
cmp dword [edi + 0x18], 0x64
jge 0x4a3d37
lea edx, [ecx + 0x60]
mov ecx, edi
push 0
call fcn.004a0820
add esp, 4
test eax, eax
je 0x4a3d42
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
and word [edi + 8], 0x2d
mov dword [edi + 0x10], eax
push dword [edi + 0x18]
mov edx, dword [edi + 0x10]
mov eax, 0x202
mov ecx, esi
mov word [edi + 8], ax
call fcn.004a32c0
mov ecx, dword [edi + 0x10]
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, 1
cmp eax, ecx
je 0x4a3dd9
mov dword [edi + 0xc], 0
test eax, eax
jne 0x4a3d8f
mov eax, 0x2400
test word [edi + 8], ax
je 0x4a3d89
mov ecx, edi
call fcn.004a0cd0
jmp 0x4a3df6
mov word [edi + 8], dx
jmp 0x4a3df6
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a3d94
sub esi, ecx
mov eax, 0x2400
and esi, 0x7fffffff
test word [edi + 8], ax
jne 0x4a3db4
cmp dword [edi + 0x18], 0
je 0x4a3dbb
mov ecx, edi
call fcn.004a0d10
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x10], eax
mov eax, 0xa02
mov dword [edi + 0xc], esi
mov esi, dword [ebp - 4]
mov dword [edi + 0x24], 0
mov word [edi + 8], ax
jmp 0x4a3df2
test ecx, ecx
je 0x4a3def
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3de0
sub ecx, edx
and ecx, 0x3fffffff
mov dword [edi + 0xc], ecx
mov byte [edi + 0xa], 1
mov eax, dword [ebx + 0x98]
and al, 0xc
cmp al, 4
jne 0x4a3e69
cmp dword [edi + 0x40], 4
jge 0x4a3e2a
push 0
mov edx, 4
lea ecx, [edi + 0x28]
call fcn.004a0820
add esp, 4
test eax, eax
je 0x4a3e35
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
and word [edi + 0x30], 0x2d
mov dword [edi + 0x38], eax
mov eax, 0x202
mov dword [edi + 0x34], 2
mov word [edi + 0x30], ax
movzx eax, word [esi + 2]
push eax
push str._.2x
push dword [edi + 0x38]
push 3
call fcn.00482ee0
mov eax, 1
mov byte [edi + 0x32], 1
add esp, 0x10
mov word [edi + 0x58], ax
mov ecx, dword [ebx + 0x98]
mov eax, 3
shr ecx, 2
mov esi, 0x64
and ecx, 3
mov dword [ebx + 0x28], 0
sub eax, ecx
shl eax, 2
mov word [ebx + 0x90], ax
mov eax, dword [ebx + 0x58]
add eax, 0x28
mov dword [ebx + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret