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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
test edi, edi
je 0x4ad8be
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], 0
test eax, eax
jne 0x4ad55d
mov dword [edi + 0x28], eax
mov eax, 0x4b0d20
mov dword [edi + 0x20], 0x4b0d20
cmp dword [edi + 0x24], 0
jne 0x4ad56a
mov dword [edi + 0x24], 0x4b0d40
cmp edx, 0xffffffff
mov ecx, 6
cmovne ecx, edx
mov dword [ebp - 4], ecx
cmp ecx, 9
ja 0x4ad8be
push esi
push 0x16c4
cmp eax, 0x4b0d20
jne 0x4ad598
call fcn.004dcafb
add esp, 4
jmp 0x4ad5a2
push 1
push dword [edi + 0x28]
call eax
add esp, 0xc
mov esi, eax
test esi, esi
je 0x4ad8b2
mov dword [edi + 0x1c], esi
mov dword [esi], edi
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0x8000
mov dword [esi + 0x34], 0x7fff
mov dword [esi + 0x50], 0xf
mov dword [esi + 0x4c], 0x8000
mov dword [esi + 0x54], 0x7fff
mov dword [esi + 0x58], 5
mov eax, dword [edi + 0x20]
cmp eax, 0x4b0d20
jne 0x4ad609
push 0x10000
call fcn.004dcafb
add esp, 4
jmp 0x4ad618
push 2
push 0x8000
push dword [edi + 0x28]
call eax
add esp, 0xc
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x4b0d20
jne 0x4ad636
add eax, eax
push eax
call fcn.004dcafb
add esp, 4
jmp 0x4ad641
push 2
push eax
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x4c]
cmp ecx, 0x4b0d20
jne 0x4ad65f
add eax, eax
push eax
call fcn.004dcafb
add esp, 4
jmp 0x4ad66a
push 2
push eax
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov dword [esi + 0x44], eax
mov dword [esi + 0x16c0], 0
mov dword [esi + 0x169c], 0x4000
mov eax, dword [edi + 0x20]
cmp eax, 0x4b0d20
jne 0x4ad69a
push 0x10000
call fcn.004dcafb
add esp, 4
jmp 0x4ad6a9
push 4
push 0x4000
push dword [edi + 0x28]
call eax
add esp, 0xc
cmp dword [esi + 0x38], 0
mov ecx, eax
mov edx, dword [esi + 0x169c]
mov dword [esi + 8], ecx
lea eax, [edx*4]
mov dword [esi + 0xc], eax
je 0x4ad89d
cmp dword [esi + 0x40], 0
je 0x4ad89d
cmp dword [esi + 0x44], 0
je 0x4ad89d
test ecx, ecx
je 0x4ad89d
mov eax, edx
mov dword [esi + 0x88], 0
shr eax, 1
mov byte [esi + 0x24], 8
lea eax, [ecx + eax*2]
mov dword [esi + 0x16a4], eax
lea eax, [ecx + edx*2]
add eax, edx
mov dword [esi + 0x1698], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x84], eax
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ad891
cmp dword [edi + 0x20], 0
je 0x4ad891
cmp dword [edi + 0x24], 0
je 0x4ad891
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
test ecx, ecx
jns 0x4ad767
neg ecx
mov dword [esi + 0x18], ecx
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [esi + 4], eax
xor eax, eax
cmp ecx, 2
mov ecx, esi
setne al
mov dword [edi + 0x30], eax
lea eax, [esi + 0x94]
mov dword [esi + 0xb18], eax
lea eax, [esi + 0x988]
mov dword [esi + 0xb24], eax
lea eax, [esi + 0xa7c]
mov dword [esi + 0xb30], eax
xor eax, eax
mov dword [esi + 0x28], 0
mov dword [esi + 0xb20], 0x5773a0
mov dword [esi + 0xb2c], 0x5773b4
mov dword [esi + 0xb38], 0x5773c8
mov word [esi + 0x16b8], ax
mov dword [esi + 0x16bc], eax
mov dword [esi + 0x16b4], 8
call fcn.004b1260
mov eax, dword [esi + 0x2c]
xor edx, edx
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004d0d20
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4ffbca]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4ffbc8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4ffbcc]
mov dword [esi + 0x90], eax
movzx eax, word [ecx*4 + 0x4ffbce]
mov dword [esi + 0x7c], eax
xor eax, eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], 0x29a
mov ecx, edi
mov dword [edi + 0x18], str.insufficient_memory
call fcn.004ae1c0
pop esi
pop edi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret