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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x49
push 0
push 0
dec ecx
jne 0x4877b1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.00404d70
xor eax, eax
push ebp
push 0x48836c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e4504]
mov al, byte [eax]
cmp al, byte [ebp - 1]
jb 0x4881c2
mov eax, dword [0x4e4460]
test byte [eax], 1
je 0x4881c2
test ebx, ebx
je 0x4881c2
push dword [ebp - 8]
push 0x488388
push 0x488394
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x1c]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404c40
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xa8]
test eax, eax
je 0x487869
push dword [ebp - 0xc]
push 0x4883a8
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xa8]
push dword [eax + 8]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
jmp 0x487883
push dword [ebp - 0xc]
push 0x4883bc
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
push dword [ebp - 0xc]
push 0x4883dc
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x108]
and eax, 0x7f
lea edx, [ebp - 0x20]
call fcn.0040b654
push dword [ebp - 0x20]
push 0x488388
push 0x4883f4
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x110]
and eax, 0x7f
lea edx, [ebp - 0x24]
call fcn.0040b654
push dword [ebp - 0x24]
push 0x488388
push 0x488388
push 0x48840c
lea edx, [ebp - 0x28]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
push dword [ebp - 0x28]
push 0x488388
push 0x488420
lea edx, [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc0]
push dword [ebp - 0x2c]
push 0x488388
push 0x48843c
lea edx, [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x78]
push dword [ebp - 0x30]
push 0x488388
push 0x488454
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
lea edx, [ebp - 0x34]
call fcn.0040b654
push dword [ebp - 0x34]
push 0x488388
push 0x488468
lea edx, [ebp - 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x38]
push 0x488388
push 0x48847c
lea edx, [ebp - 0x40]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0xc]
movzx eax, ax
lea edx, [ebp - 0x3c]
call fcn.0040b654
push dword [ebp - 0x3c]
push 0x488388
push 0x4884a4
lea edx, [ebp - 0x48]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x44]
push 0x488388
push 0x4884c4
lea edx, [ebp - 0x50]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push dword [ebp - 0x4c]
push 0x488388
push 0x4884e8
lea edx, [ebp - 0x58]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x54]
push 0x488388
push 0x488508
lea edx, [ebp - 0x60]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x24]
push dword [ebp - 0x5c]
push 0x488388
push 0x488528
lea edx, [ebp - 0x68]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x34]
and eax, 0xff
lea edx, [ebp - 0x64]
call fcn.0040b654
push dword [ebp - 0x64]
push 0x488388
push 0x48854c
lea edx, [ebp - 0x70]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
call dword [edx + 0x3c]
and eax, 0xff
lea edx, [ebp - 0x6c]
call fcn.0040b654
push dword [ebp - 0x6c]
push 0x488388
push 0x488568
lea edx, [ebp - 0x78]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
call dword [edx + 0x44]
movzx eax, ax
lea edx, [ebp - 0x74]
call fcn.0040b654
push dword [ebp - 0x74]
push 0x488388
push 0x48858c
lea edx, [ebp - 0x80]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
call dword [edx + 0x4c]
movzx eax, ax
lea edx, [ebp - 0x7c]
call fcn.0040b654
push dword [ebp - 0x7c]
push 0x488388
push 0x4885b0
lea edx, [ebp - 0x88]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
call dword [edx + 0x54]
movzx eax, ax
lea edx, [ebp - 0x84]
call fcn.0040b654
push dword [ebp - 0x84]
push 0x488388
push 0x4885d8
lea edx, [ebp - 0x90]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x124]
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
call dword [edx + 0x5c]
movzx eax, ax
lea edx, [ebp - 0x8c]
call fcn.0040b654
push dword [ebp - 0x8c]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 0x38
call fcn.00404c40
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x487bae
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
push dword [ebp - 0xc]
push 0x488604
lea edx, [ebp - 0x94]
mov eax, esi
call fcn.0040b654
push dword [ebp - 0x94]
push 0x488618
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x58]
lea ecx, [ebp - 0x98]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x98]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.00404c40
inc esi
dec dword [ebp - 0x10]
jne 0x487b5c
lea edx, [ebp - 0x9c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
cmp dword [ebp - 0x9c], 0
je 0x487cbb
push dword [ebp - 0xc]
push 0x488624
lea edx, [ebp - 0x1a4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
mov eax, dword [ebp - 0x1a4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [eax]
lea edx, [ebp - 0x1a0]
call fcn.00403a00
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0xa0]
call fcn.00404b24
push dword [ebp - 0xa0]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
lea edx, [ebp - 0x1a8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
mov eax, dword [ebp - 0x1a8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x487cd5
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
push dword [ebp - 0xc]
push 0x488640
lea edx, [ebp - 0x1ac]
mov eax, esi
call fcn.0040b654
push dword [ebp - 0x1ac]
push 0x488618
lea edx, [ebp - 0x1b4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
mov eax, dword [ebp - 0x1b4]
mov edx, dword [eax]
call dword [edx + 0xc]
lea ecx, [ebp - 0x1b0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x1b0]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.00404c40
inc esi
dec dword [ebp - 0x10]
jne 0x487c53
jmp 0x487cd5
push dword [ebp - 0xc]
push 0x488658
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
push dword [ebp - 0xc]
push 0x488670
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x98]
call fcn.00421504
lea edx, [ebp - 0x1b8]
call fcn.0040b654
push dword [ebp - 0x1b8]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
mov edx, 0x488688
mov eax, ebx
call fcn.004128e4
test al, al
je 0x487ff2
lea eax, [ebp - 0x14]
mov edx, ebx
mov ecx, 0x488688
call fcn.00406598
push dword [ebp - 0xc]
push 0x4886a0
lea edx, [ebp - 0x1bc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x180]
push dword [ebp - 0x1bc]
push 0x488388
push 0x4886b8
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x188]
push dword [ebp - 0x1c0]
push 0x488388
push 0x4886d4
lea edx, [ebp - 0x1c4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1b0]
push dword [ebp - 0x1c4]
push 0x488388
push 0x4886e4
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1a0]
push dword [ebp - 0x1c8]
push 0x488388
push 0x4886f8
lea edx, [ebp - 0x1cc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1a8]
push dword [ebp - 0x1cc]
push 0x488388
push 0x48870c
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1b8]
push dword [ebp - 0x1d0]
push 0x488388
push 0x488728
lea edx, [ebp - 0x1d4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc0]
push dword [ebp - 0x1d4]
push 0x488388
push 0x488744
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x1c8]
lea edx, [ebp - 0x1d8]
call fcn.0040b654
push dword [ebp - 0x1d8]
push 0x488388
push 0x488758
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x1d0]
lea edx, [ebp - 0x1dc]
call fcn.0040b654
push dword [ebp - 0x1dc]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 0x1c
call fcn.00404c40
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x1d8]
test al, al
je 0x487ea0
push dword [ebp - 0xc]
push 0x48876c
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
jmp 0x487eba
push dword [ebp - 0xc]
push 0x488780
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
push dword [ebp - 0xc]
push 0x488794
lea edx, [ebp - 0x1e0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x190]
push dword [ebp - 0x1e0]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
push dword [ebp - 0xc]
push 0x4887a8
lea edx, [ebp - 0x1f4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c0]
lea eax, [ebp - 0x1f4]
lea ecx, [ebp - 0x1e4]
xor edx, edx
call fcn.0046be30
push dword [ebp - 0x1e4]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
push dword [ebp - 0xc]
push 0x4887b8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x198]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x1f8]
call fcn.0040b654
push dword [ebp - 0x1f8]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x198]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x4881a6
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
push dword [ebp - 0xc]
push 0x4887cc
lea edx, [ebp - 0x1fc]
mov eax, esi
call fcn.0040b654
push dword [ebp - 0x1fc]
push 0x4887dc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x198]
lea ecx, [ebp - 0x210]
mov edx, esi
mov edi, dword [eax]
call dword [edi]
lea eax, [ebp - 0x210]
lea ecx, [ebp - 0x200]
xor edx, edx
call fcn.0046be30
push dword [ebp - 0x200]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.00404c40
inc esi
dec dword [ebp - 0x10]
jne 0x487f85
jmp 0x4881a6
mov edx, 0x4887e0
mov eax, ebx
call fcn.004128e4
test al, al
je 0x4881a6
lea eax, [ebp - 0x18]
mov edx, ebx
mov ecx, 0x4887e0
call fcn.00406598
push dword [ebp - 0xc]
push 0x4887f8
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x188]
push dword [ebp - 0x214]
push 0x488388
push 0x488810
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x180]
lea edx, [ebp - 0x218]
call fcn.0040b654
push dword [ebp - 0x218]
push 0x488388
push 0x4886d4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x198]
push dword [ebp - 0x21c]
push 0x488388
push 0x488744
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x1a8]
lea edx, [ebp - 0x220]
call fcn.0040b654
push dword [ebp - 0x220]
push 0x488388
push 0x488758
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x1b0]
lea edx, [ebp - 0x224]
call fcn.0040b654
push dword [ebp - 0x224]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 0x10
call fcn.00404c40
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x1b8]
test al, al
je 0x488104
push dword [ebp - 0xc]
push 0x48876c
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
jmp 0x48811e
push dword [ebp - 0xc]
push 0x488780
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
push dword [ebp - 0xc]
push 0x4887a8
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1a0]
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x228]
xor edx, edx
call fcn.0046be30
push dword [ebp - 0x228]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
push dword [ebp - 0xc]
push 0x488828
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1c0]
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x23c]
xor edx, edx
call fcn.0046be30
push dword [ebp - 0x23c]
push 0x488388
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c40
mov eax, dword [ebp - 0xc]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xb0]
push eax
mov cl, byte [ebp - 2]
xor edx, edx
mov al, byte [ebp - 1]
call fcn.0046af30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488376
lea eax, [ebp - 0x24c]
call fcn.00414710
lea eax, [ebp - 0x23c]
call fcn.004048c0
lea eax, [ebp - 0x238]
call fcn.00414710
lea eax, [ebp - 0x228]
mov edx, 6
call fcn.004048e4
lea eax, [ebp - 0x210]
call fcn.00414710
lea eax, [ebp - 0x200]
mov edx, 3
call fcn.004048e4
lea eax, [ebp - 0x1f4]
call fcn.00414710
lea eax, [ebp - 0x1e4]
mov edx, 0xc
call fcn.004048e4
lea eax, [ebp - 0x1b4]
call fcn.00406554
lea eax, [ebp - 0x1b0]
mov edx, 2
call fcn.004048e4
lea eax, [ebp - 0x1a8]
mov edx, dword [0x46efe0]
mov ecx, 2
call fcn.004053d8
lea eax, [ebp - 0xa0]
call fcn.004048c0
lea eax, [ebp - 0x9c]
call fcn.00406554
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.004048e4
lea eax, [ebp - 0x90]
call fcn.00406554
lea eax, [ebp - 0x8c]
call fcn.004048c0
lea eax, [ebp - 0x88]
call fcn.00406554
lea eax, [ebp - 0x84]
call fcn.004048c0
lea eax, [ebp - 0x80]
call fcn.00406554
lea eax, [ebp - 0x7c]
call fcn.004048c0
lea eax, [ebp - 0x78]
call fcn.00406554
lea eax, [ebp - 0x74]
call fcn.004048c0
lea eax, [ebp - 0x70]
call fcn.00406554
lea eax, [ebp - 0x6c]
call fcn.004048c0
lea eax, [ebp - 0x68]
call fcn.00406554
lea eax, [ebp - 0x64]
call fcn.004048c0
lea eax, [ebp - 0x60]
call fcn.00406554
lea eax, [ebp - 0x5c]
call fcn.004048c0
lea eax, [ebp - 0x58]
call fcn.00406554
lea eax, [ebp - 0x54]
call fcn.004048c0
lea eax, [ebp - 0x50]
call fcn.00406554
lea eax, [ebp - 0x4c]
call fcn.004048c0
lea eax, [ebp - 0x48]
call fcn.00406554
lea eax, [ebp - 0x44]
call fcn.004048c0
lea eax, [ebp - 0x40]
call fcn.00406554
lea eax, [ebp - 0x3c]
mov edx, 9
call fcn.004048e4
lea eax, [ebp - 0x18]
call fcn.00406554
lea eax, [ebp - 0x14]
call fcn.00406554
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004048e4
ret