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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x4ebf09
sub esp, 0x9c
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
cmp dword [ebx], 2
jl 0x4ebb3e
jmp 0x4ebb45
add esp, 0x9c
ret
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
mov ebx, dword [ebx + 0xa0034]
test ebx, ebx
setne bl
mov byte [esp + 0x1b], bl
jne 0x4ebb61
jmp 0x4ebb63
jmp 0x4ebb7d
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
mov ebx, dword [ebx + 0xa0044]
test ebx, ebx
setne bl
mov byte [esp + 0x1b], bl
jmp 0x4ebb7d
movzx ebx, byte [esp + 0x1b]
test bl, bl
jne 0x4ebef0
jmp 0x4ebb8c
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x58], ebx
cmp ebx, 0x8000
jg 0x4ebba1
jmp 0x4ebc09
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x58], ebx
lea eax, [ebx - 0x8000]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0xa4]
jmp 0x4ebbcd
cmp ecx, eax
jae 0x4ebbd6
jmp 0x4ebeeb
sub ecx, ebx
sub ebp, ebx
lea ebx, [ebp + 0x8000]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [esi + eax]
mov dword [esp + 0xa4], ebx
lea ebx, [ecx + 0x8000]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebp
jmp 0x4ebc0b
jmp 0x4ebc0b
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
mov ebp, dword [ebx + 0xa0038]
mov esi, dword [ebx + 0xa003c]
mov ebx, dword [ebx + 0xa0040]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xac]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], esi
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x50], ebp
cmp ebx, ebp
jl 0x4ebc70
jmp 0x4ebc76
mov dword [esp + 0x50], ebx
jmp 0x4ebc78
jmp 0x4ebc78
mov ebx, dword [esp + 0x78]
cmp dword [esp + 0x84], ebx
jne 0x4ebc87
jmp 0x4ebcac
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00476100
jmp 0x4ebcae
jmp 0x4ebcae
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x20], ebx
lea ebp, [ebx + 0xfc]
sar ebp, 0x1f
shr ebp, 0x18
lea ebx, [ebx + ebp + 0xfc]
sar ebx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
jmp 0x4ebcda
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x24], ebx
jg 0x4ebce9
jmp 0x4ebe07
mov ebx, dword [esp + 0x28]
shl ebx, 8
mov dword [esp + 0x2c], ebx
add ebx, 0x103
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x20], ebx
jl 0x4ebd06
jmp 0x4ebd10
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
jmp 0x4ebd12
jmp 0x4ebd12
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
mov edx, dword [ebx + 0xa0040]
mov ebx, dword [ebx + 0xa0038]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp edx, ecx
jae 0x4ebd38
jmp 0x4ebee6
cmp ecx, eax
jae 0x4ebd41
jmp 0x4ebee1
sub ecx, eax
sub edx, eax
mov ebp, edx
neg edx
sar edx, 0x1f
and eax, edx
add ebx, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x54], ecx
add ecx, 0xfffffffd
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x4ebd6d
jmp 0x4ebd72
jmp 0x4ebece
mov eax, dword [esp + 0xa0]
test byte [eax], al
add eax, 0xa0070
test byte [eax], al
cmp ecx, 0x101
jbe 0x4ebd8f
jmp 0x4ebed7
jmp 0x4ebd91
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0x101
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
mov edx, dword [ebx + 0x1c]
mov ebx, dword [edx]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x101
call ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
jmp 0x4ebe34
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xa0044], ecx
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xa0034], ecx
add esp, 0x9c
ret
mov ebx, dword [esp + 0x48]
cmp dword [esp + 0x44], ebx
jg 0x4ebe43
jmp 0x4ebecc
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x30], ebx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x90]
lea ebp, [esi + ebp*4]
mov ebp, dword [ebp]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x2c]
add ebx, esi
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xa0]
test byte [ebx], al
and ebp, 0x1ffff
lea ebx, [ebx + ebp*4 + 0x30]
mov dword [esp + 0x68], ebx
mov ebp, dword [esp + 0x3c]
and ebp, 0x7fff
mov dword [esp + 0x40], ebp
test byte [ebx], al
mov esi, dword [esp + 0xa0]
test byte [esi], al
lea ebp, [esi + ebp*4 + 0x80030]
mov ebx, dword [ebx]
mov dword [ebp], ebx
mov ebx, dword [esp + 0x68]
test byte [ebx], al
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0xa0]
test byte [esi], al
add ebp, dword [esi + 0xa0030]
mov dword [ebx], ebp
jmp 0x4ebec3
inc dword [esp + 0x48]
jmp 0x4ebe34
jmp 0x4ebece
inc dword [esp + 0x28]
jmp 0x4ebcda
mov edx, 0x101
call fcn.00475850
call fcn.00475890
call fcn.00475870
call fcn.00475890
lea eax, [0x5115e0]
mov dword [esp], eax
lea eax, [0x53a878]
mov dword [esp + 4], eax
call fcn.0046fd20
nop
call fcn.004743b0
jmp fcn.004ebb10