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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ec255
sub esp, 0x64
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x84], 0
mov dword [esp + 0x30], 0x102
cmp dword [esp + 0x78], 0x102
jl 0x4ebf66
jmp 0x4ebf70
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], ebx
jmp 0x4ebf72
jmp 0x4ebf72
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x68]
test byte [ebx], al
mov edx, dword [ebx + 0xa0040]
mov ebx, dword [ebx + 0xa0038]
cmp edx, ecx
jae 0x4ebf99
jmp 0x4ec24f
jmp 0x4ebf9b
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x6c]
sub ecx, edx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x68]
test byte [edx], al
cmp dword [edx + 0xc], ecx
jl 0x4ebfc2
jmp 0x4ebfd1
mov edx, dword [esp + 0x68]
test byte [edx], al
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], edx
jmp 0x4ebfd3
jmp 0x4ebfd3
mov edx, dword [esp + 0x68]
test byte [edx], al
mov edx, dword [edx + 0x10]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x7c], ebx
mov ebp, dword [esp + 0x68]
test byte [ebp], al
cmp dword [ebp + 4], ebx
jle 0x4ebff6
jmp 0x4ebfff
sar edx, 2
mov dword [esp + 0x24], edx
jmp 0x4ec001
jmp 0x4ec001
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x7c]
cmp ecx, eax
ja 0x4ec01a
jmp 0x4ec24a
add edx, eax
movzx edx, byte [edx]
mov byte [esp + 0x21], dl
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
jmp 0x4ec035
cmp ecx, eax
jae 0x4ec03e
jmp 0x4ec245
sub ebx, eax
sub ecx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
add edx, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebp
mov edx, dword [esp + 0x6c]
add edx, 0xffff8000
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x38], edx
jmp 0x4ec071
mov edx, dword [esp + 0x24]
test edx, edx
jg 0x4ec07e
jmp 0x4ec230
movzx edx, byte [esp + 0x21]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x7c]
cmp ecx, eax
ja 0x4ec09c
jmp 0x4ec240
add ebx, eax
cmp byte [ebx], dl
je 0x4ec0a7
jmp 0x4ec1bd
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
jmp 0x4ec0b9
cmp eax, ecx
jbe 0x4ec0c2
jmp 0x4ec23b
sub ebx, eax
sub ecx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
add eax, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebp
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call fcn.004ec580
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x7c], eax
setl al
mov byte [esp + 0x23], al
jl 0x4ec124
jmp 0x4ec158
cmp dword [esp + 0x2c], 4
setg dl
mov byte [esp + 0x22], dl
jg 0x4ec134
jmp 0x4ec136
jmp 0x4ec14d
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x38]
cmp edx, 0x1000
setle dl
mov byte [esp + 0x22], dl
jmp 0x4ec14d
movzx edx, byte [esp + 0x22]
mov byte [esp + 0x23], dl
jmp 0x4ec15a
jmp 0x4ec15a
movzx edx, byte [esp + 0x23]
test dl, dl
jne 0x4ec165
jmp 0x4ec1b9
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x38]
mov dword [esp + 0x80], edx
mov byte [esp + 0x84], 1
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x28], edx
jle 0x4ec190
jmp 0x4ec195
jmp 0x4ec232
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x2c]
cmp ecx, eax
ja 0x4ec1ae
jmp 0x4ec236
add edx, eax
movzx edx, byte [edx]
mov byte [esp + 0x21], dl
jmp 0x4ec1bb
jmp 0x4ec1bb
jmp 0x4ec1bf
jmp 0x4ec1bf
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x34], edx
je 0x4ec1cb
jmp 0x4ec1cd
jmp 0x4ec232
mov edx, dword [esp + 0x68]
test byte [edx], al
mov ebx, dword [esp + 0x38]
and ebx, 0x7fff
lea edx, [edx + ebx*4 + 0x80030]
mov edx, dword [edx]
mov ebx, dword [esp + 0x68]
test byte [ebx], al
sub edx, dword [ebx + 0xa0030]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x34]
cmp ebx, edx
setg dl
mov byte [esp + 0x23], dl
jg 0x4ec207
jmp 0x4ec209
jmp 0x4ec218
mov edx, dword [esp + 0x38]
test edx, edx
setl dl
mov byte [esp + 0x23], dl
jmp 0x4ec218
movzx edx, byte [esp + 0x23]
test dl, dl
jne 0x4ec223
jmp 0x4ec225
jmp 0x4ec232
jmp 0x4ec227
dec dword [esp + 0x24]
jmp 0x4ec071
jmp 0x4ec232
add esp, 0x64
ret
call fcn.00475830
call fcn.00475890
call fcn.00475830
call fcn.00475890
call fcn.00475830
call fcn.00475870
nop
call fcn.004743b0
jmp fcn.004ebf20