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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebp, dword [edx]
mov edi, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
mov eax, ebp
mov dword [esp + 0x18], edi
sub eax, edi
cmp eax, 0x40
jle 0x4bf044
test ecx, ecx
je 0x4bf21b
lea edi, [esp + 0x68]
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x18]
sar eax, 3
sub dword [esp + 0x20], 1
mov esi, dword [ebx + eax*4]
lea ecx, [ebx + 4]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebx]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
mov edi, dword [ecx + 0x20]
cmp edx, eax
jbe 0x4bf050
cmp eax, edi
ja 0x4bf20a
cmp edx, edi
jbe 0x4bf1f5
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.00568540
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp - 4]
mov edi, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [ebx + 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], edx
mov esi, dword [edi]
mov ecx, edi
cmp eax, dword [esi + 0x20]
jb 0x4becc7
cmp eax, dword [esp + 0x14]
lea edx, [ebp - 4]
jbe 0x4becd0
lea edx, [ebp - 8]
nop
mov ebx, dword [edx]
mov ebp, edx
sub edx, 4
cmp eax, dword [ebx + 0x20]
ja 0x4beb10
cmp ebp, edi
jbe 0x4bece0
mov eax, dword [esi]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], eax
movzx eax, word [esi + 8]
mov dword [esp + 0x6c], edx
mov word [esp + 0x70], ax
mov eax, dword [esi + 0xa]
mov dword [esp + 0x72], eax
movzx eax, word [esi + 0xe]
mov word [esp + 0x76], ax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x78], eax
movzx eax, word [esi + 0x14]
mov word [esp + 0x7c], ax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [0x60fce4]
mov dword [esi + 0x18], eax
movzx eax, byte [esi + 0x1c]
mov byte [esp + 0x84], al
movzx eax, byte [esi + 0x1d]
mov byte [esp + 0x85], al
mov eax, dword [esi + 0x20]
mov edx, dword [ebx + 4]
mov dword [esp + 0x88], eax
movzx eax, word [esi + 0x24]
mov word [esp + 0x8c], ax
movzx eax, word [esi + 0x26]
mov word [esp + 0x8e], ax
mov eax, dword [ebx]
mov dword [esi + 4], edx
mov dword [esi], eax
movzx eax, word [ebx + 8]
mov edx, dword [ebx + 0x18]
mov word [esi + 8], ax
mov eax, dword [ebx + 0xa]
mov dword [esi + 0xa], eax
movzx eax, word [ebx + 0xe]
mov word [esi + 0xe], ax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
movzx eax, word [ebx + 0x14]
mov word [esi + 0x14], ax
mov eax, dword [0x60fce4]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x18], edx
mov dword [esp + 0x40], eax
call fcn.00543e50
movzx eax, byte [ebx + 0x1c]
lea ecx, [esp + 0x40]
mov byte [esi + 0x1c], al
movzx eax, byte [ebx + 0x1d]
mov byte [esi + 0x1d], al
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x20], eax
movzx eax, word [ebx + 0x24]
mov word [esi + 0x24], ax
movzx eax, word [ebx + 0x26]
mov word [esi + 0x26], ax
mov eax, dword [esp + 0x68]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x80]
mov dword [ebx], eax
movzx eax, word [esp + 0x70]
mov word [ebx + 8], ax
mov eax, dword [esp + 0x72]
mov dword [ebx + 0xa], eax
movzx eax, word [esp + 0x76]
mov word [ebx + 0xe], ax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x10], eax
movzx eax, word [esp + 0x7c]
mov word [ebx + 0x14], ax
mov eax, dword [0x60fce4]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x18], edx
mov dword [esp + 0x40], eax
call fcn.00543e50
movzx eax, byte [esp + 0x84]
lea ecx, [esp + 0x80]
mov byte [ebx + 0x1c], al
movzx eax, byte [esp + 0x85]
mov byte [ebx + 0x1d], al
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x20], eax
movzx eax, word [esp + 0x8c]
mov word [ebx + 0x24], ax
movzx eax, word [esp + 0x8e]
mov word [ebx + 0x26], ax
call fcn.00543e50
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], ecx
add edi, 4
jmp 0x4beaf1
mov ebp, edx
cmp ebp, edi
ja 0x4beb24
lea esi, [esi]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], edi
mov eax, dword [esi]
mov dword [esp + 0x68], eax
movzx eax, byte [esp + 0xb0]
mov byte [esp], al
lea eax, [esp + 0x40]
call fcn.004bea50
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, edi
sub eax, ecx
cmp eax, 0x40
jle 0x4bf044
mov edx, dword [esp + 0x20]
mov ebp, edi
test edx, edx
jne 0x4bea8b
sar eax, 2
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], eax
sub eax, 2
sar eax, 1
mov esi, eax
jmp 0x4bed5c
lea ecx, [esp + 0x58]
sub esi, 1
call fcn.00543e50
mov eax, dword [edi + esi*4]
mov edx, dword [eax + 0xa]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
movzx ebp, word [eax + 8]
mov dword [esp + 0x4a], edx
movzx edx, word [eax + 0xe]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x60fce4]
mov word [esp + 0x48], bp
mov dword [esp + 0x44], ebx
mov word [esp + 0x4e], dx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x50], edx
movzx edx, word [eax + 0x14]
mov word [esp + 0x54], dx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x58], edx
mov dword [eax + 0x18], ecx
movzx ecx, byte [eax + 0x1c]
mov byte [esp + 0x5c], cl
movzx ebx, byte [eax + 0x1d]
mov byte [esp + 0x14], cl
mov byte [esp + 0x5d], bl
movzx edx, word [eax + 0x24]
mov ecx, dword [eax + 0x20]
mov word [esp + 0x8c], dx
mov word [esp + 0x64], dx
movzx edx, word [eax + 0x26]
mov dword [esp + 0x60], ecx
mov word [esp + 0x8e], dx
mov word [esp + 0x66], dx
mov eax, dword [esp + 0x40]
mov word [esp + 0x70], bp
mov ebp, dword [esp + 0x4a]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [0x60fce4]
mov dword [esp + 0x72], ebp
movzx ebp, word [esp + 0x4e]
mov dword [esp + 0x6c], edx
mov edx, esi
mov byte [esp + 0x85], bl
mov dword [esp + 0x3c], edi
mov word [esp + 0x76], bp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x78], ebp
movzx ebp, word [esp + 0x54]
mov word [esp + 0x7c], bp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x58], eax
movzx eax, byte [esp + 0x14]
mov dword [esp + 0x80], ebp
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
lea eax, [esp + 0x3c]
call fcn.004b6d70
lea ecx, [esp + 0x80]
call fcn.00543e50
test esi, esi
jne 0x4bed50
lea ecx, [esp + 0x58]
call fcn.00543e50
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
sub esi, 4
nop
lea esi, [esi]
mov ebp, dword [esi]
mov edi, dword [ebx]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x40], eax
movzx eax, word [ebp + 8]
mov dword [esp + 0x44], edx
mov word [esp + 0x48], ax
mov eax, dword [ebp + 0xa]
mov dword [esp + 0x4a], eax
movzx eax, word [ebp + 0xe]
mov word [esp + 0x4e], ax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
movzx eax, word [ebp + 0x14]
mov word [esp + 0x54], ax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [0x60fce4]
mov dword [ebp + 0x18], eax
movzx eax, byte [ebp + 0x1c]
mov byte [esp + 0x5c], al
movzx eax, byte [ebp + 0x1d]
mov byte [esp + 0x5d], al
mov eax, dword [ebp + 0x20]
mov edx, dword [edi + 4]
mov dword [esp + 0x60], eax
movzx eax, word [ebp + 0x24]
mov word [esp + 0x64], ax
movzx eax, word [ebp + 0x26]
mov word [esp + 0x66], ax
mov eax, dword [edi]
mov dword [ebp], eax
mov dword [ebp + 4], edx
movzx edx, word [edi + 8]
mov ecx, dword [edi + 0x18]
mov eax, dword [0x60fce4]
mov word [ebp + 8], dx
mov edx, dword [edi + 0xa]
mov dword [ebp + 0xa], edx
movzx edx, word [edi + 0xe]
mov word [ebp + 0xe], dx
mov edx, dword [edi + 0x10]
mov dword [ebp + 0x10], edx
movzx edx, word [edi + 0x14]
mov word [ebp + 0x14], dx
mov dword [edi + 0x18], eax
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], edx
call fcn.00543e50
movzx edx, byte [edi + 0x1c]
mov byte [ebp + 0x1c], dl
movzx edx, byte [edi + 0x1d]
mov byte [ebp + 0x1d], dl
mov edx, dword [edi + 0x20]
movzx eax, word [edi + 0x26]
mov dword [ebp + 0x20], edx
movzx edx, word [edi + 0x24]
mov edi, dword [0x60fce4]
mov word [ebp + 0x26], ax
mov eax, dword [esp + 0x40]
mov word [ebp + 0x24], dx
mov edx, dword [esp + 0x44]
mov ebp, esi
mov dword [esp + 0x68], eax
movzx eax, word [esp + 0x48]
sub ebp, ebx
mov ecx, ebp
sub esi, 4
mov dword [esp + 0x6c], edx
sar ecx, 2
xor edx, edx
mov word [esp + 0x70], ax
mov eax, dword [esp + 0x4a]
mov dword [esp + 0x72], eax
movzx eax, word [esp + 0x4e]
mov word [esp + 0x76], ax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x78], eax
movzx eax, word [esp + 0x54]
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], edi
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x5c]
mov byte [esp + 0x84], al
movzx eax, byte [esp + 0x5d]
mov byte [esp + 0x85], al
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x88], eax
movzx eax, word [esp + 0x64]
mov word [esp + 0x8c], ax
movzx eax, word [esp + 0x66]
mov word [esp + 0x8e], ax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
lea eax, [esp + 0x3c]
call fcn.004b6d70
lea ecx, [esp + 0x80]
call fcn.00543e50
lea ecx, [esp + 0x58]
call fcn.00543e50
cmp ebp, 4
jg 0x4bee90
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, edi
ja 0x4bf1f5
cmp eax, edi
ja 0x4beace
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], eax
movzx eax, word [ebx + 8]
mov dword [esp + 0x6c], edx
mov word [esp + 0x70], ax
mov eax, dword [ebx + 0xa]
mov dword [esp + 0x72], eax
movzx eax, word [ebx + 0xe]
mov word [esp + 0x76], ax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x78], eax
movzx eax, word [ebx + 0x14]
mov word [esp + 0x7c], ax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [0x60fce4]
mov dword [ebx + 0x18], eax
movzx eax, byte [ebx + 0x1c]
mov byte [esp + 0x84], al
movzx eax, byte [ebx + 0x1d]
mov byte [esp + 0x85], al
mov eax, dword [ebx + 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x88], eax
movzx eax, word [ebx + 0x24]
mov word [esp + 0x8c], ax
movzx eax, word [ebx + 0x26]
mov word [esp + 0x8e], ax
mov eax, dword [esi]
mov dword [ebx + 4], edx
mov dword [ebx], eax
movzx eax, word [esi + 8]
mov edx, dword [esi + 0x18]
mov word [ebx + 8], ax
mov eax, dword [esi + 0xa]
mov dword [ebx + 0xa], eax
movzx eax, word [esi + 0xe]
mov word [ebx + 0xe], ax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
movzx eax, word [esi + 0x14]
mov word [ebx + 0x14], ax
mov eax, dword [0x60fce4]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x18], edx
mov dword [esp + 0x40], eax
call fcn.00543e50
movzx eax, byte [esi + 0x1c]
lea ecx, [esp + 0x40]
mov byte [ebx + 0x1c], al
movzx eax, byte [esi + 0x1d]
mov byte [ebx + 0x1d], al
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [ebx + 0x20], eax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x26]
mov word [ebx + 0x26], ax
mov eax, dword [esp + 0x68]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x80]
mov dword [esi], eax
movzx eax, word [esp + 0x70]
mov word [esi + 8], ax
mov eax, dword [esp + 0x72]
mov dword [esi + 0xa], eax
movzx eax, word [esp + 0x76]
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x10], eax
movzx eax, word [esp + 0x7c]
mov word [esi + 0x14], ax
mov eax, dword [0x60fce4]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x18], edx
mov dword [esp + 0x40], eax
call fcn.00543e50
movzx eax, byte [esp + 0x84]
lea ecx, [esp + 0x80]
mov byte [esi + 0x1c], al
movzx eax, byte [esp + 0x85]
mov byte [esi + 0x1d], al
mov eax, dword [esp + 0x88]
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x8c]
mov word [esi + 0x24], ax
movzx eax, word [esp + 0x8e]
mov word [esi + 0x26], ax
call fcn.00543e50
jmp 0x4beada
mov eax, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00568540
jmp 0x4beada
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00568540
jmp 0x4beada
lea edi, [esp + 0x68]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], edi
jmp 0x4bed37