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

Disassembly:
push 0xffffffffffffffff
push 0xb8d5446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x36c
push ebx
push ebp
call dword [0xb8d76c0]
mov ebx, eax
mov ebp, 1
cmp ebx, ebp
mov dword [esp + 0x10], ebx
jae 0x1004af1b
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
add esp, 0x378
ret
push esi
push edi
xor edi, edi
xor esi, esi
cmp ebx, edi
mov dword [esp + 0x1c], esi
jbe 0x1004b4a9
lea ecx, [ecx]
push 0x10000
push edi
push edi
push esi
lea eax, [esp + 0x20]
push eax
call dword [0xb8d76bc]
test eax, eax
je 0x1004af57
mov ecx, dword [esp + 0x10]
push ecx
call dword [0xb8d76b8]
jmp 0x1004b15e
mov eax, dword [esp + 0x10]
push 0x80000003
lea edx, [esp + 0x244]
push edx
push eax
mov dword [esp + 0x24c], 0xa8
mov dword [esp + 0x264], 7
call dword [0xb8d76b4]
test eax, eax
je 0x1004af99
mov ecx, dword [esp + 0x10]
push ecx
call dword [0xb8d76b8]
jmp 0x1004b15e
mov ebx, dword [esp + 0x260]
push 0xb89aea0
push 0xb89ae90
push 8
push 0xc
lea edx, [esp + 0x94]
push edx
call fcn.100642ac
cmp ebx, edi
mov dword [esp + 0x384], edi
mov dword [esp + 0x14], edi
jbe 0x1004b12e
lea esi, [esp + 0x8c]
jmp 0x1004afe0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x244]
push 0x80000001
lea ecx, [esp + 0x108]
push ecx
push edx
mov dword [esp + 0x110], 0xa8
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], eax
call dword [0xb8d76b4]
test eax, eax
jne 0x1004b072
mov eax, dword [esp + 0x11c]
cmp eax, 0x1008
je 0x1004b080
cmp eax, 0x100a
jne 0x1004b072
mov eax, dword [esp + 0x110]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
inc edx
lea eax, [esp + 0x13c]
mov dword [esi - 8], edi
lea ecx, [esi - 4]
mov dword [esp + 0x14], edx
add esi, 0xc
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004b056
sub eax, ebp
push eax
lea edx, [esp + 0x140]
push edx
call fcn.100016a0
mov ebp, 1
inc edi
cmp edi, ebx
jb 0x1004afe0
jmp 0x1004b122
mov eax, dword [esp + 0x110]
push 0x80000002
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x1b4]
mov ebx, 0x18
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], 0x50030001
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 0x94
mov dword [esp + 0x58], ecx
call dword [0xb8d76b0]
test eax, eax
jne 0x1004b117
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esp + 0x1bc]
mov dword [esp + 0x24], ecx
push 0x80000000
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x58]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], 0xffff
call dword [0xb8d76ac]
cmp edi, 0xffffffff
mov esi, edi
jne 0x1004b36c
cmp dword [esp + 0x14], ebp
jge 0x1004b170
mov esi, dword [esp + 0x1c]
xor edi, edi
mov eax, dword [esp + 0x10]
push eax
call dword [0xb8d76b8]
push 0xb89aea0
push 8
push 0xc
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x394], 0xffffffff
call fcn.1006369c
mov ebx, dword [esp + 0x18]
inc esi
cmp esi, ebx
mov dword [esp + 0x1c], esi
jb 0x1004af30
jmp 0x1004b4a9
mov ebx, dword [esp + 0x14]
xor ebp, ebp
test ebx, ebx
jle 0x1004b216
lea esi, [esp + 0x88]
mov eax, dword [esi]
mov edx, dword [eax - 4]
mov edi, dword [eax - 0xc]
mov eax, dword [eax - 8]
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
jge 0x1004b1a5
push edi
mov ecx, esi
call fcn.100014f0
mov eax, dword [esi]
push eax
call fcn.10064227
add esp, 4
test edi, edi
jl 0x1004b362
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x1004b362
mov dword [eax - 0xc], edi
mov edx, dword [esi]
mov byte [edi + edx], 0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x1004b1ee
push 0xb8dd568
push eax
call fcn.10062751
add esp, 8
test eax, eax
je 0x1004b1ee
sub eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1004b1f8
inc ebp
add esi, 0xc
cmp ebp, ebx
jl 0x1004b185
jmp 0x1004b216
lea eax, [ebp + ebp*2]
shl eax, 2
mov esi, dword [esp + eax + 0x84]
cmp esi, 0xffffffff
mov eax, dword [esp + eax + 0x8c]
jne 0x1004b2cb
xor ebp, ebp
test ebx, ebx
jle 0x1004b2b4
lea esi, [esp + 0x88]
mov eax, dword [esi]
mov edx, dword [eax - 4]
mov edi, dword [eax - 0xc]
mov eax, dword [eax - 8]
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
jge 0x1004b247
push edi
mov ecx, esi
call fcn.100014f0
mov eax, dword [esi]
push eax
call fcn.10064227
add esp, 4
test edi, edi
jl 0x1004b362
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x1004b362
mov dword [eax - 0xc], edi
mov eax, dword [esi]
mov byte [edi + eax], 0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x1004b290
push 0xb8dd560
push eax
call fcn.10062751
add esp, 8
test eax, eax
je 0x1004b290
sub eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1004b29a
inc ebp
add esi, 0xc
cmp ebp, ebx
jl 0x1004b227
jmp 0x1004b2b4
lea eax, [ebp + ebp*2]
shl eax, 2
mov esi, dword [esp + eax + 0x84]
cmp esi, 0xffffffff
mov eax, dword [esp + eax + 0x8c]
jne 0x1004b2cb
mov esi, dword [esp + 0x84]
cmp esi, 0xffffffff
mov eax, dword [esp + 0x8c]
je 0x1004b375
mov ebp, 1
mov ebx, 0x18
push 0x80000002
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x1b4]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 0x50030001
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0x94
mov dword [esp + 0x40], ecx
call dword [0xb8d76b0]
test eax, eax
jne 0x1004b37f
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esp + 0x1bc]
mov dword [esp + 0x3c], ecx
push 0x80000000
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], 0xffff
call dword [0xb8d76ac]
jmp 0x1004b37f
push 0x80070057
call fcn.100010d0
mov eax, dword [esp + 0x18]
jmp 0x1004b2d5
mov ebp, 1
mov ebx, 0x18
mov eax, dword [esp + 0x24c]
push 0x80000002
lea edx, [esp + 0x70]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x2f0]
push eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], 0x70010001
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], 0x94
mov dword [esp + 0x8c], ecx
call dword [0xb8d76b0]
test eax, eax
jne 0x1004b458
mov edx, dword [esp + 0x2ec]
mov eax, dword [esp + 0x2f8]
mov dword [esp + 0x58], edx
push 0x80000000
lea edx, [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0xec]
push eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], 4
mov dword [esp + 0x74], ecx
call dword [0xb8d76a8]
test eax, eax
jne 0x1004b458
mov edx, dword [esp + 0x2f8]
test edx, edx
jbe 0x1004b436
mov ecx, edx
lea edi, [esp + 0xe4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
sub edx, esi
mov dword [esp + edx*4 + 0xe0], ebp
push 0x80000000
lea edx, [esp + 0x58]
push edx
push eax
call dword [0xb8d76ac]
test eax, eax
je 0x1004b47d
push 0xb89aea0
push 8
push 0xc
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x394], 0xffffffff
call fcn.1006369c
xor eax, eax
jmp 0x1004b4ab
mov edx, dword [esp + 0x10]
push edx
call dword [0xb8d76b8]
push 0xb89aea0
push 8
push 0xc
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x394], 0xffffffff
call fcn.1006369c
mov eax, ebp
mov ecx, dword [esp + 0x37c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x378
ret