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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
movzx ecx, byte [ebp + 0xc]
and ecx, 2
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x44]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x46]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x74]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x40]
mov edx, dword [ebp - 0x18]
mov ax, word [eax + edx*2]
mov dh, al
mov dl, ah
movzx eax, dx
and ecx, eax
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx + 0x38]
mov dword [ebp - 8], ecx
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x4b09bc
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 8]
test edx, edx
je 0x4b0996
mov eax, dword [ebp - 0x1c]
movzx esi, word [eax + 0x14]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00493790
add esp, 8
movzx eax, ax
lea ecx, [esi + eax + 2]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
shl eax, 1
xor edx, edx
mov esi, 3
div esi
cmp ecx, eax
jle 0x4b09b5
mov eax, dword [ebp + 8]
push eax
call fcn.004955a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b09b3
mov eax, dword [ebp - 0xc]
jmp 0x4b0c7f
jmp 0x4b09bc
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x4b09e6
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004ac120
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b09e6
mov eax, dword [ebp - 0xc]
jmp 0x4b0c7f
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x40]
and edx, 0x20
je 0x4b0a1a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004953e0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b0a1a
mov eax, dword [ebp - 0xc]
jmp 0x4b0c7f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x70], 0
jne 0x4b0a43
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [edx + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004ac7b0
add esp, 0x14
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x48]
push eax
call fcn.0048cff0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b0a63
mov eax, dword [ebp - 0xc]
jmp 0x4b0c7f
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ac840
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
movzx edx, word [ebp - 0x26]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ad1f0
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4b0aa1
mov eax, dword [ebp - 0xc]
jmp 0x4b0c7f
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x4b0bad
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x74]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x78]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + 0x18]
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + 0x16]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 0x40]
mov ax, word [edx + eax*2 - 2]
mov dh, al
mov dl, ah
movzx eax, dx
and ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, dword [edx + 0x38]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x38]
add ecx, 4
cmp dword [ebp - 8], ecx
jae 0x4b0b1c
push 0x10971
call fcn.00504e80
add esp, 4
jmp 0x4b0c7f
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x4c]
call edx
add esp, 8
movzx eax, ax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x48]
push ecx
call fcn.0048cff0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b0b80
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, 4
push edx
mov eax, dword [ebp - 8]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004ad730
add esp, 0x1c
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + 0x16]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004ad1f0
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4b0bad
mov eax, dword [ebp - 0xc]
jmp 0x4b0c7f
mov edx, dword [ebp + 8]
push edx
call fcn.004ae0a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b0c16
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x44]
cmp ecx, dword [ebp - 0x3c]
jle 0x4b0c16
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x44]
cmp eax, dword [ebp - 0x3c]
jle 0x4b0c07
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x74]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x44]
sub al, 1
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x44], al
mov edx, dword [ebp - 0x50]
push edx
call fcn.00495080
add esp, 4
jmp 0x4b0bce
mov eax, dword [ebp + 8]
push eax
call fcn.004ae0a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b0c7c
cmp dword [ebp - 0x14], 0
je 0x4b0c5e
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x42], 2
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x16]
cmp dword [ebp - 0x18], eax
jl 0x4b0c52
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], 0xffffffff
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x16]
sub eax, 1
mov ecx, dword [ebp + 8]
mov word [ecx + 0x46], ax
jmp 0x4b0c5c
mov edx, dword [ebp + 8]
mov dword [edx + 0x3c], 1
jmp 0x4b0c7c
mov eax, dword [ebp + 8]
push eax
call fcn.004ab0d0
add esp, 4
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x4b0c7c
mov edx, dword [ebp + 8]
mov byte [edx + 0x42], 3
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret