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

Disassembly:
push 0xffffffffffffffff
push 0x4ed2f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2d8]
cmp dword [esi + 4], 0x147
mov ebx, ecx
sbb eax, eax
neg eax
or dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x58]
and eax, 1
mov dword [esp + 0x2c], esi
je 0x4bd8bb
mov ecx, dword [esp + 0x2e0]
mov edx, dword [esp + 0x2dc]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.004bd1a0
jmp 0x4be22c
mov eax, dword [esi]
mov dword [ebx + 0x254], eax
test al, 1
jne 0x4bd8ce
xor al, al
jmp 0x4be22c
mov eax, dword [esp + 0x2e0]
mov edx, dword [esp + 0x2dc]
lea edi, [ebx + 0x5c]
mov dword [edi], eax
lea eax, [ebx + 0x150]
lea ecx, [esi + 0x20]
push eax
mov dword [ebx + 0x258], ecx
add edx, 0xffffffe0
push esi
mov ecx, edi
mov dword [ebx + 0x25c], edx
call fcn.004b8730
mov eax, dword [edi]
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0x25c]
mov edx, dword [ebx + 0x258]
xor ebp, ebp
push ebp
push ecx
push edx
mov ecx, ebx
call fcn.004b8900
mov eax, dword [ebx + 0x254]
shr eax, 1
test al, 1
je 0x4bd960
mov eax, dword [esi + 4]
xor eax, dword [esp + 0x2e0]
lea ecx, [ebx + 0x64]
push eax
call fcn.004e0fb0
lea eax, [ebx + 0x64]
push eax
push esi
mov ecx, edi
call fcn.004b8790
mov ecx, dword [ebx + 0x25c]
mov edx, dword [ebx + 0x258]
push ecx
push edx
lea ecx, [ebx + 0x64]
call fcn.004e0f60
movzx esi, word [esi + 8]
lea edi, [ebx + 0x260]
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.00433b70
push esi
mov ecx, edi
call fcn.004bcc00
push ebp
lea ecx, [ebx + 0x2b8]
push esi
call fcn.004b9bb0
xor edi, edi
cmp esi, ebp
jle 0x4bdeb7
jmp 0x4bd9a0
mov eax, dword [ebx + 0x2c8]
sub eax, dword [ebx + 0x2c4]
sar eax, 2
cmp edi, eax
jb 0x4bd9b8
call fcn.004caf0d
mov ecx, dword [ebx + 0x2c4]
mov dword [ecx + edi*4], 0xffffffff
inc edi
cmp edi, esi
jl 0x4bd9a0
cmp esi, ebp
jle 0x4bdeb7
mov dword [esp + 0x20], esi
jmp 0x4bd9e0
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x4bd9f0
mov edx, dword [ebx + 0x254]
shr edx, 1
test dl, 1
je 0x4bda08
push edi
lea ecx, [ebx + 0x64]
call fcn.004e12d0
jmp 0x4bda11
mov eax, dword [ebx + 0x258]
mov al, byte [edi + eax]
mov byte [esp + esi + 0x200], al
inc esi
inc edi
cmp esi, 5
jl 0x4bd9f0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x204]
push edx
call fcn.004b84a0
add dword [esp + 0x18], eax
push 4
call fcn.004cb3d4
add esp, 4
cmp eax, ebp
je 0x4bda4b
lea ecx, [esp + 0x38]
mov dword [eax], ecx
jmp 0x4bda4d
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x54]
cmp eax, ebp
mov dword [esp + 0x2d0], 1
jle 0x4bde3d
lea edx, [esp + 0xe8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x18]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebx + 0x254]
shr eax, 1
test al, 1
je 0x4bdaa7
push edi
lea ecx, [ebx + 0x64]
call fcn.004e12d0
jmp 0x4bdab0
mov ecx, dword [ebx + 0x258]
mov al, byte [edi + ecx]
mov byte [esp + esi + 0x248], al
inc esi
inc edi
cmp esi, 0x2c
jl 0x4bda90
add dword [esp + 0x18], 0x2c
lea esi, [ebx + 0x150]
push esi
lea ecx, [ebx + 0x5c]
call fcn.004b88a0
push 0x2c
lea edx, [esp + 0x24c]
push edx
mov eax, edx
push eax
mov ecx, esi
call fcn.00470730
push 4
mov dword [esp + 0x78], 0x421160
call fcn.004cb3d4
add esp, 4
cmp eax, ebp
je 0x4bdb07
lea ecx, [esp + 0xe8]
mov dword [eax], ecx
jmp 0x4bdb09
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xfc], ebp
lea ecx, [esp + 0x74]
mov byte [esp + 0x2d0], 3
call fcn.004b2aa0
mov dword [esp + 0x74], 0x421168
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebp
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], ebp
mov dword [esp + 0x114], ebp
lea edx, [esp + 0x248]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x2d4], 4
call fcn.004b27f0
mov edi, dword [esp + 0x270]
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x4bdd99
xor esi, esi
jmp 0x4bdba0
mov eax, dword [ebx + 0x254]
shr eax, 1
test al, 1
je 0x4bdbb7
push edi
lea ecx, [ebx + 0x64]
call fcn.004e12d0
jmp 0x4bdbc0
mov ecx, dword [ebx + 0x258]
mov al, byte [edi + ecx]
mov byte [esp + esi + 0x1f8], al
inc esi
inc edi
cmp esi, 8
jl 0x4bdba0
mov eax, dword [ebx + 0x5c]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x208]
lea esi, [ebx + 0x150]
push edx
mov ecx, esi
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], edi
mov dword [esp + 0x214], eax
mov dword [esp + 0x218], edi
call fcn.004701a0
push 8
lea eax, [esp + 0x1fc]
mov ecx, eax
push eax
push ecx
mov ecx, esi
call fcn.00470730
mov eax, dword [esp + 0x1f8]
mov edx, dword [esp + 0x1fc]
add edi, 8
lea esi, [eax - 8]
mov dword [esp + 0x1c], edi
xor edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], 0x418d24
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], edi
mov byte [esp + 0x68], 1
mov dword [esp + 0x6c], ebp
cmp esi, ebp
jbe 0x4bdc72
push esi
call fcn.004caa28
mov edi, esi
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x24], eax
jmp 0x4bdc76
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov eax, edi
neg eax
sbb eax, eax
and eax, ecx
push edi
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x2dc], 5
call fcn.004b8550
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x21c], ecx
mov dword [esp + 0x224], ecx
mov esi, edi
neg esi
lea ecx, [esp + 0x218]
sbb esi, esi
and esi, dword [esp + 0x24]
push ecx
lea ecx, [ebx + 0x150]
mov dword [esp + 0x21c], eax
mov dword [esp + 0x224], eax
call fcn.004701a0
push edi
push esi
push esi
lea ecx, [ebx + 0x150]
call fcn.00470730
sub esp, 0x18
mov esi, esp
lea edx, [esp + 0x70]
mov dword [esp + 0x34], esp
mov dword [esi], 0x418d24
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], ebp
cmp edx, esi
je 0x4bdd6a
mov eax, edi
neg eax
sbb eax, eax
and eax, dword [esp + 0x3c]
mov dword [esi + 4], ebp
mov dword [esp + 0x34], eax
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], ebp
cmp edi, ebp
jbe 0x4bdd6a
push edi
call fcn.004caa28
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
cmp dword [esp + 0x34], ebp
je 0x4bdd59
mov ecx, dword [esp + 0x34]
push edi
push ecx
push eax
call fcn.004cb570
jmp 0x4bdd67
cmp dword [esi + 0x14], 1
jne 0x4bdd6a
push edi
push ebp
push eax
call fcn.004caf20
add esp, 0xc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.004ba970
mov eax, dword [esp + 0x24]
mov byte [esp + 0x2d0], 4
cmp eax, ebp
je 0x4bdd99
push eax
call fcn.004cb4d6
add esp, 4
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00459cd0
mov dword [esp + 0x114], ebp
mov dword [esp + 0x74], 0x421160
lea ecx, [esp + 0x74]
mov byte [esp + 0x2d0], 6
call fcn.004b2aa0
mov esi, dword [esp + 0xf4]
mov byte [esp + 0x2d0], 7
cmp esi, ebp
je 0x4bde05
mov edi, dword [esp + 0xf8]
cmp esi, edi
je 0x4bddfc
mov edx, dword [esi]
mov eax, dword [edx]
push ebp
mov ecx, esi
call eax
add esi, 0x18
cmp esi, edi
jne 0x4bdde5
mov esi, dword [esp + 0xf4]
push esi
call fcn.004cada5
add esp, 4
mov ecx, dword [esp + 0xe8]
push ecx
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x100], ebp
mov byte [esp + 0x2d4], 1
call fcn.004cada5
add esp, 4
sub dword [esp + 0x34], 1
jne 0x4bda83
lea edx, [esp + 0x38]
push edx
lea ecx, [ebx + 0x260]
call fcn.004bd100
mov esi, dword [esp + 0x44]
mov dword [esp + 0x2d0], 8
cmp esi, ebp
je 0x4bde88
mov edi, dword [esp + 0x48]
cmp esi, edi
je 0x4bde7f
mov eax, dword [esi]
mov edx, dword [eax]
push ebp
mov ecx, esi
call edx
add esi, 0xa4
cmp esi, edi
jne 0x4bde68
mov esi, dword [esp + 0x44]
push esi
call fcn.004cada5
add esp, 4
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x2d4], 0xffffffff
call fcn.004cada5
add esp, 4
sub dword [esp + 0x20], 1
jne 0x4bd9e0
mov esi, dword [esp + 0x2c]
movzx ecx, word [esi + 0xa]
mov eax, dword [ebx + 0x2a8]
lea edi, [ebx + 0x298]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
cmp dword [edi + 0xc], eax
jbe 0x4bdedd
call fcn.004caf0d
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x1f8], edx
mov dword [esp + 0x30], eax
cmp eax, dword [edi + 0x10]
jbe 0x4bdef7
call fcn.004caf0d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1f8]
mov eax, dword [edi]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
push eax
lea edx, [esp + 0x128]
push edx
mov ecx, edi
call fcn.0042e470
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004b9a70
xor edi, edi
cmp dword [esp + 0x1c], ebp
jle 0x4be0c5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
xor esi, esi
lea ecx, [ecx]
mov edx, dword [ebx + 0x254]
shr edx, 1
test dl, 1
je 0x4bdf5c
push ecx
lea ecx, [ebx + 0x64]
call fcn.004e12d0
mov ecx, dword [esp + 0x20]
jmp 0x4bdf65
mov eax, dword [ebx + 0x258]
mov al, byte [ecx + eax]
mov byte [esp + esi + 0x228], al
inc esi
inc ecx
cmp esi, 0x20
mov dword [esp + 0x20], ecx
jl 0x4bdf40
add dword [esp + 0x18], 0x20
lea esi, [ebx + 0x150]
push esi
lea ecx, [ebx + 0x5c]
call fcn.004b88a0
push 0x20
lea ecx, [esp + 0x22c]
push ecx
mov edx, ecx
push edx
mov ecx, esi
call fcn.00470730
mov dword [esp + 0x194], ebx
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], ebp
mov dword [esp + 0x1a0], ebp
mov dword [esp + 0x1a4], ebp
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x134], ebp
mov dword [esp + 0x138], ebp
mov dword [esp + 0x13c], ebp
mov dword [esp + 0x140], ebp
mov dword [esp + 0x144], ebp
mov dword [esp + 0x148], ebp
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x150], ebp
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], ebp
mov dword [esp + 0x180], ebp
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x160], ebp
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], ebp
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x170], ebp
mov dword [esp + 0x174], ebp
mov dword [esp + 0x178], ebp
mov dword [esp + 0x17c], ebp
mov dword [esp + 0x184], ebp
mov dword [esp + 0x188], ebp
mov dword [esp + 0x18c], ebp
mov dword [esp + 0x190], ebp
push edi
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x134]
mov dword [esp + 0x2d8], 9
call fcn.004b2d80
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [ebx + 0x298]
call fcn.004ba690
inc edi
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x2d0], 0xffffffff
jl 0x4bdf33
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2b0], eax
mov edx, dword [esi + 0xc]
mov dword [ebx + 0x2b4], edx
add eax, dword [esi + 0xc]
lea edi, [ebx + 0x278]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.0042c110
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], ebp
mov dword [eax], eax
mov edi, dword [edi + 0x18]
xor edx, edx
mov dword [edi + 8], edi
mov dword [esp + 0x20], ebp
cmp dx, word [esi + 0x10]
jae 0x4be20d
mov edi, dword [esp + 0x18]
xor esi, esi
lea ecx, [ecx]
mov eax, dword [ebx + 0x254]
shr eax, 1
test al, 1
je 0x4be137
push edi
lea ecx, [ebx + 0x64]
call fcn.004e12d0
jmp 0x4be140
mov ecx, dword [ebx + 0x258]
mov al, byte [edi + ecx]
mov byte [esp + esi + 0x274], al
inc esi
inc edi
cmp esi, 0x50
jl 0x4be120
lea esi, [ebx + 0x150]
push esi
lea ecx, [ebx + 0x5c]
call fcn.004b88a0
push 0x50
lea edx, [esp + 0x278]
push edx
mov eax, edx
push eax
mov ecx, esi
call fcn.00470730
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x278]
mov eax, dword [esp + 0x27c]
mov dword [esp + 0x1a8], ecx
mov ecx, dword [esp + 0x280]
mov dword [esp + 0x1b4], ecx
mov ecx, 0x10
lea esi, [esp + 0x284]
lea edi, [esp + 0x1b8]
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], eax
rep movsd dword es:[edi], dword [esi]
add dword [esp + 0x18], 0x50
lea edx, [esp + 0x1a8]
push edx
lea eax, [esp + 0x124]
push eax
lea ecx, [ebx + 0x278]
mov dword [esp + 0x2d8], 0xa
call fcn.004b9900
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
movzx edx, word [ecx + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x2d0], 0xffffffff
mov dword [esp + 0x20], eax
jl 0x4be117
push ebp
push ebp
push ecx
mov eax, esp
mov dword [eax], 1
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], esp
push ecx
mov ecx, ebx
call edx
mov al, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x2c0
ret 0xc