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

Disassembly:
push 0xffffffffffffffff
push 0x4a6ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0050d46e
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0
call fcn.0050d46e
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.0050d46e
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
call fcn.0050d46e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 3
call fcn.0050d46e
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 4
call fcn.0050d46e
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.0050d46e
mov eax, dword [0x4de8b0]
mov edi, dword [esp + 0x54]
mov bl, 6
mov ecx, dword [eax + 0x6c]
mov byte [esp + 0x4c], bl
test ecx, ecx
je 0x487290
test edi, edi
je 0x48729c
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x487308
cmp edi, 1
jne 0x487308
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 4
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 3
call fcn.0050d468
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.0050d468
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.0050d468
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4877a1
mov eax, dword [esi]
push 1
push 1
mov ecx, esi
call dword [eax + 4]
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00479dc8
mov ebp, dword [esi + 0x84]
test ebp, ebp
je 0x4873c9
mov eax, ebp
mov ebp, dword [ebp]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x54]
cmp dword [edi + 0x58], eax
jne 0x4873bd
mov ecx, dword [edi + 0x20]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00475958
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 7
call fcn.0050d696
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], bl
call fcn.0050d468
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00475958
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 8
call fcn.0050d696
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], bl
call fcn.0050d468
push 0x4ce4e4
lea ecx, [esp + 0x1c]
call fcn.0050d6a8
push 0x4ce4e4
lea ecx, [esp + 0x18]
call fcn.0050d6a8
test ebp, ebp
jne 0x487336
mov edi, dword [esp + 0x54]
test edi, edi
jne 0x487503
mov edx, dword [esi + 0xe8]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00475958
add esp, 8
push eax
lea ecx, [esp + 0x40]
push 0x4ce4d8
push ecx
mov byte [esp + 0x58], 9
call fcn.0050d612
push 0x4ce4c8
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x58], 0xa
call fcn.0050d60c
push 0x4ce4bc
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x54], 0xb
push eax
call fcn.0050d60c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x58], 0xc
call fcn.0050d6a2
push 0x4ce4b0
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x54], 0xd
push eax
call fcn.0050d60c
lea ecx, [esp + 0x20]
lea edx, [esp + 0x54]
push ecx
push eax
push edx
mov byte [esp + 0x58], 0xe
call fcn.0050d6a2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0xf
call fcn.0050d5e8
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0xe
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 0xd
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 0xc
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xb
call fcn.0050d468
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0xa
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 9
call fcn.0050d468
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], bl
call fcn.0050d468
lea eax, [esp + 0x14]
lea ecx, [esp + 0x54]
push eax
push 0x4ce4a0
push ecx
call fcn.0050d612
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0x10
call fcn.0050d696
mov byte [esp + 0x4c], bl
lea ecx, [esp + 0x54]
jmp 0x48768f
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push 0x4ce48c
push eax
call fcn.0050d612
push 0x4ce4bc
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x58], 0x11
call fcn.0050d60c
lea edx, [esp + 0x1c]
mov byte [esp + 0x4c], 0x12
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0050d6a2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0x13
call fcn.0050d5e8
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0x12
call fcn.0050d468
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 0x11
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], bl
call fcn.0050d468
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4875b3
lea ecx, [esi + 0x9b4]
lea edx, [esp + 0x54]
push ecx
push 0x4ce484
push edx
call fcn.0050d612
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0x14
call fcn.0050d696
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.0050d468
mov eax, dword [esi + 0xe8]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00475958
add esp, 8
mov ebp, eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x34]
push edx
push 0x4ce4b0
push eax
mov byte [esp + 0x58], 0x15
call fcn.0050d612
push 0x4ce4a0
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x58], 0x16
call fcn.0050d60c
lea edx, [esp + 0x14]
mov byte [esp + 0x4c], 0x17
push edx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0050d6a2
push 0x4ce47c
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x58], 0x18
call fcn.0050d60c
push ebp
lea edx, [esp + 0x58]
push eax
push edx
mov byte [esp + 0x58], 0x19
call fcn.0050d6a2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0x1a
call fcn.0050d696
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0x19
call fcn.0050d468
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 0x18
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 0x17
call fcn.0050d468
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0x16
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0x15
call fcn.0050d468
mov byte [esp + 0x4c], bl
lea ecx, [esp + 0x30]
call fcn.0050d468
push 1
push 1
push 1
lea ecx, [esp + 0x1c]
call fcn.00470bf8
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x4d8880
call fcn.0050d618
push ecx
mov ecx, dword [esp + 0x74]
mov eax, esp
mov dword [esp + 0x58], esp
push ecx
push 0x17
push edi
push eax
mov ecx, esi
mov byte [esp + 0x78], 0x1b
call fcn.00482c18
lea edx, [esp + 0x70]
mov ecx, esi
push edx
mov byte [esp + 0x6c], bl
call fcn.0047b1a8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0x1c
call fcn.0050d5e8
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.0050d468
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0050d48c
mov eax, dword [esi]
push 1
push 0
mov ecx, esi
call dword [eax + 4]
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.0050d618
push edi
mov ecx, esi
call fcn.00486d08
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x4c], 5
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 4
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 3
call fcn.0050d468
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.0050d468
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.0050d468
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0050d468
mov eax, esi
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 8