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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x9c
push ebx
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004c9830
mov edx, dword [esp + 0x38]
add esp, 8
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edx
call dword [0x10078040]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ad1a9
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4ad19b
push eax
call fcn.004c17d0
add esp, 4
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret 8
push edi
push ebx
push esi
call dword [0x100780ec]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jbe 0x4ad1d1
push edi
call fcn.004c1680
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x18]
push ebp
push 0
lea eax, [esp + 0x8c]
push eax
push edi
push ecx
push esi
call dword [0x1007803c]
push esi
call dword [0x1007810c]
mov edx, dword [esp + 0x38]
push 1
push 0
push edx
call dword [0x100780e8]
mov esi, eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0xe8]
mov edi, dword [ecx + esi + 8]
mov ebx, dword [edi + esi + 0xc]
add edi, esi
xor eax, eax
lea ebp, [ebx + 2]
cmp ebp, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
jbe 0x4ad23d
lea edx, [ebp + ebp]
push edx
call fcn.004c1680
mov dword [esp + 0x64], eax
mov eax, ebp
add esp, 4
mov dword [esp + 0x64], eax
mov ebp, dword [esp + 0x60]
add eax, eax
push eax
push ebp
call fcn.004c15e0
add esp, 8
xor eax, eax
test ebx, ebx
jbe 0x4ad272
jmp 0x4ad260
movzx cx, byte [edi + eax + 0x10]
mov word [ebp + eax*2], cx
add eax, 1
cmp eax, ebx
jb 0x4ad260
push esi
call dword [0x10078088]
lea edx, [esp + 0x10]
push 4
push edx
call fcn.004c15e0
xor esi, esi
add esp, 8
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x70], esi
call dword [0x10078260]
cmp eax, esi
jl 0x4ad36e
mov edi, dword [0x100780a8]
xor ecx, ecx
test eax, eax
sete cl
push 0x10078f84
mov dword [esp + 0x74], ecx
call edi
mov ebx, dword [0x100780a0]
push 0x10078f70
push eax
mov dword [esp + 0x7c], eax
call ebx
mov esi, eax
test esi, esi
jne 0x4ad30e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ad2e5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], esi
test ebp, ebp
je 0x4ad2f2
push ebp
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ad303
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x4ad3a6
lea ecx, [esp + 0x10]
push ecx
push 0x100782dc
push 0x100782bc
push 1
push 0
push ebp
call esi
test eax, eax
jge 0x4ad72e
lea edx, [esp + 0x14]
push 4
push edx
call fcn.004c15e0
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0x100782cc
push 0x100782ac
push 5
push 0x10078f68
push ebp
call esi
test eax, eax
mov eax, dword [esp + 0x14]
jge 0x4ad3c1
xor esi, esi
cmp eax, esi
je 0x4ad36e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4ad382
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x4ad38f
push ebp
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4ad3a0
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x4ad3b1
push eax
call fcn.004c17d0
add esp, 4
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret 8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
test eax, eax
jge 0x4ad42e
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
je 0x4ad3e3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4ad3f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x4ad404
push ebp
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4ad415
push eax
call fcn.004c17d0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.004aa5e0
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret 8
lea eax, [esp + 0x44]
push 4
push eax
call fcn.004c15e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.004c15e0
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
mov edx, dword [edx]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x1007828c
push eax
call edx
mov eax, dword [esp + 0x38]
push 0x10078be0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004e67e0
add esp, 8
push eax
lea edx, [esp + 0x58]
push edx
call fcn.004aaf30
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x7c]
call fcn.004abcf0
lea ecx, [esp + 0x50]
call fcn.004aa5e0
lea ecx, [esp + 0x2c]
call fcn.004aa5e0
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x4ad4c2
mov ecx, 0x100782ec
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x38]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.004aa370
push 0x10078f58
lea ecx, [esp + 0x30]
call fcn.004aa190
mov esi, dword [esp + 0x2c]
push esi
call dword [0x10078214]
cmp eax, 0xffffffff
je 0x4ad536
push esi
lea ecx, [esp + 0x54]
call fcn.004abcf0
mov eax, dword [esp + 0x50]
cmp eax, ebp
jne 0x4ad520
mov eax, 0x100782ec
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x28]
push ecx
call eax
lea ecx, [esp + 0x50]
call fcn.004aa7b0
lea ecx, [esp + 0x4c]
push 4
push ecx
call fcn.004c15e0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push 0x10078f4c
push eax
call edx
lea eax, [esp + 0x24]
push 4
push eax
call fcn.004c15e0
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x24]
push edx
push 0x1007829c
push eax
mov eax, dword [ecx]
call eax
mov esi, dword [esp + 0xb4]
cmp esi, ebp
je 0x4ad65b
push 0x10078f34
call edi
push 0x10078f20
push eax
call ebx
lea ecx, [esp + 0x48]
push ecx
push esi
call eax
mov edi, dword [0x10078228]
lea edx, [esp + 0x8c]
push edx
mov esi, eax
call edi
lea eax, [esp + 0x9c]
push eax
call edi
mov ecx, dword [esp + 0x48]
push ecx
push ebp
push 8
call dword [0x1007822c]
mov edi, eax
xor eax, eax
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x68], eax
jle 0x4ad610
mov ebx, dword [0x10078224]
mov ebp, dword [0x1007821c]
nop
mov edx, dword [esi + eax*4]
push edx
call ebp
push eax
lea eax, [esp + 0x6c]
push eax
push edi
call ebx
mov eax, dword [esp + 0x68]
add eax, 1
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x68], eax
jl 0x4ad5f0
push esi
call dword [0x100780e4]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x54]
call fcn.004abcf0
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
jne 0x4ad636
mov eax, 0x100782ec
mov edx, dword [esi]
mov edx, dword [edx + 0xd0]
lea ecx, [esp + 0x6c]
push ecx
push edi
push ebx
push eax
push esi
call edx
lea ecx, [esp + 0x50]
call fcn.004aa7b0
push edi
call dword [0x10078220]
jmp 0x4ad694
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
call fcn.004abcf0
mov eax, dword [eax]
cmp eax, ebp
jne 0x4ad678
mov eax, 0x100782ec
mov ecx, dword [esi]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0xcc]
push esi
call eax
lea ecx, [esp + 0x50]
call fcn.004aa7b0
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4ad6a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4ad6bc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4ad6cd
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x4ad6dc
push eax
call dword [0x10078230]
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x4ad6ed
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4ad701
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4ad715
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4ad9ec
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4ad9ec
mov esi, dword [0x1007820c]
push 1
push 1
push 0x100b70ec
call esi
cmp eax, 1
jne 0x4ad764
mov edi, dword [0x100781f4]
lea ebx, [ebx]
push 0x64
call edi
push 1
push 1
push 0x100b70ec
call esi
cmp eax, 1
je 0x4ad750
push 0
push 0
push 0x100b70f0
call esi
test eax, eax
jne 0x4ad952
mov ebp, dword [0x100780b0]
push 1
push 0x100b70ec
call ebp
lea eax, [esp + 0x2c]
push 0x10078f58
push eax
call fcn.004c9900
add esp, 4
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004aaf30
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4ad7b7
push eax
call fcn.004c17d0
add esp, 4
mov edi, dword [esp + 0x50]
push edi
call dword [0x10078214]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
jne 0x4ad825
xor esi, esi
push 0x10078eb0
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004aa410
push esi
push esi
push 1
push esi
push 1
push 0x40000000
push edi
call fcn.004b9c70
mov ecx, dword [esp + 0x2c]
push ebx
mov esi, eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
push esi
call dword [0x10078094]
push esi
call dword [0x1007810c]
lea ecx, [esp + 0x2c]
call fcn.004aa5e0
lea edx, [esp + 0x14]
push 4
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov eax, dword [esp + 0x14]
jge 0x4ad8b7
xor esi, esi
cmp eax, esi
je 0x4ad85f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x50]
call fcn.004aa5e0
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4ad87c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x4ad88d
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4ad89e
push eax
call fcn.004c17d0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.004aa5e0
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret 8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push 0x10078e58
push 0x10078d98
push eax
call edx
test eax, eax
jl 0x4ad8dd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jge 0x4ad923
lea ecx, [esp + 0x14]
call fcn.0050ed20
lea ecx, [esp + 0x50]
call fcn.004aa5e0
lea ecx, [esp + 0x10]
call fcn.0050ed20
lea ecx, [esp + 0x60]
call fcn.004aa300
lea ecx, [esp + 0x1c]
call fcn.004aa300
lea ecx, [esp + 0x38]
call fcn.004aa5e0
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret 8
test ebx, ebx
jne 0x4ad92e
push edi
call dword [0x100780d4]
push 1
push 0x100b70f0
call ebp
push 0
push 0x100b70ec
call ebp
lea ecx, [esp + 0x14]
call fcn.0050ed20
lea ecx, [esp + 0x50]
call fcn.004aa5e0
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x4ad982
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea esi, [esp + 0x28]
push esi
push ecx
mov ecx, dword [0x100b70e8]
mov ecx, dword [ecx]
push 0x10078d88
push 0x10078d40
push ecx
push eax
call edx
cmp dword [esp + 0x28], 0
jne 0x4ad9ec
push 0x10078f58
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004aaf30
mov edx, dword [esp + 0x5c]
add esp, 0xc
push edx
call dword [0x10078214]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0xb4]
push edx
mov edx, dword [0x100b70e8]
mov edx, dword [edx]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
je 0x4ad9d2
push 0x10078d08
jmp 0x4ad9d7
push 0x10078cc8
push 0x10078d40
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
lea ecx, [esp + 0x50]
call fcn.004aa5e0
cmp dword [esp + 0x70], 0
je 0x4ad9f9
call dword [0x10078264]
mov ecx, dword [esp + 0x74]
push ecx
call dword [0x10078088]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
and esi, dword [esp + 0x6c]
test eax, eax
je 0x4ada28
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4ada39
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ada4a
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4ada5b
push eax
call fcn.004c17d0
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 8