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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
mov eax, dword [esi + 0x47c]
mov ecx, dword [esi + 0x5d8]
push edi
mov edi, dword [esi + 0x6a4]
push eax
push ecx
xor ebx, ebx
push esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edi
call fcn.004f6e40
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x5d8]
add esp, 0xc
cmp eax, dword [esi + 0x3a00]
jge 0x4cdfe2
mov dword [esi + 0x3a00], eax
cmp edi, ebx
je 0x4ce091
cmp dword [esp + 0x74], ebx
jne 0x4ce095
mov ebx, dword [esp + 0x6c]
push ebx
call fcn.004e1c30
lea edi, [eax + 2]
push edi
call fcn.004e27e0
mov ebp, eax
push edi
mov dword [esp + 0x78], ebp
call fcn.004e27e0
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x74], eax
je 0x4ce852
test eax, eax
je 0x4ce852
mov ebp, dword [esp + 0x70]
test ebp, ebp
jne 0x4ce053
mov ecx, dword [esi + 0x39c]
mov edx, eax
mov eax, dword [esp + 0x6c]
push edx
push eax
push ebx
push ecx
call fcn.004f3850
mov dword [esp + 0x1c], 1
xor ebx, ebx
jmp 0x4ce095
lea edx, [edi + edi]
push edx
call fcn.004e27e0
mov edi, eax
add esp, 4
test edi, edi
je 0x4ce852
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
push 0
push edi
push eax
push ecx
push ebp
push ebx
push esi
call fcn.004ef540
add esp, 0x1c
mov dword [esp + 0x70], edi
mov dword [esp + 0x1c], 1
xor ebx, ebx
jmp 0x4ce095
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x4ce0ad
cmp dword [eax + 4], 0xffffffff
jne 0x4ce0ad
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x7c], ebx
mov edi, dword [esi + 0x5d8]
mov eax, dword [esi + 0x138]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
mov ebp, 1
sub eax, ebp
js 0x4ce101
mov dl, byte [esi + 0xb50]
cmp byte [eax + ecx], dl
je 0x4ce0db
sub eax, ebp
jns 0x4ce0d0
jmp 0x4ce101
cmp eax, ebx
jl 0x4ce101
mov ecx, dword [esi + 0x47c]
cmp ecx, eax
jle 0x4ce101
push ebx
push ecx
push edi
push esi
call fcn.004f2cd0
add esp, 0x10
add dword [esi + 0x5d8], ebp
mov dword [esi + 0x47c], ebx
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 0xc]
cmp eax, 0x2ee
jle 0x4ce145
cdq
sub eax, edx
mov edi, eax
push ebx
sar edi, 1
push edi
push ecx
push esi
call fcn.004f2cd0
mov eax, dword [esi + 0x47c]
add esp, 0x10
cmp eax, edi
jle 0x4ce145
add dword [esi + 0x5d8], ebp
sub eax, edi
mov dword [esi + 0x47c], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x5d8]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x24], ecx
jmp 0x4ce180
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 0x138]
mov edx, dword [esi + 0x5d8]
mov ecx, dword [eax + edx*4]
mov eax, dword [esi + 0x494]
je 0x4ce1a7
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [ecx + 0xc]
sub eax, 1
test eax, eax
mov dword [esp + 0x5c], eax
jg 0x4ce1bd
mov dword [esp + 0x5c], 0xa
lea edx, [esp + 0x3c]
push edx
push esi
call fcn.004cd930
mov ebp, dword [esp + 0x50]
add esp, 8
cmp dword [esp + 0x50], 0
je 0x4ce1de
test ebp, ebp
je 0x4ce79e
mov eax, dword [esi + 0x5d8]
mov ecx, dword [esi + 0x138]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ecx + 0xc]
lea edx, [edi + ebp]
push edx
mov ecx, edi
push ecx
push eax
push esi
call fcn.00494d30
mov eax, dword [esi + 0x47c]
add esp, 0x10
cmp eax, edi
jge 0x4ce224
mov ecx, dword [esi + 0x5d8]
sub edi, eax
push edi
lea edx, [eax + ebp]
push edx
push ecx
push eax
push ecx
push esi
call fcn.004efc30
add esp, 0x18
mov eax, dword [esi + 0x5d8]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + eax*4]
mov edi, dword [edx]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
push esi
call fcn.004ad0c0
mov ebx, dword [esp + 0x20]
add esp, 0x10
test ebx, ebx
je 0x4ce261
mov eax, dword [esi + 0x5d8]
push eax
push esi
call fcn.004abf50
add esp, 8
mov ecx, dword [esi + 0x47c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
push ebp
add ecx, edi
push ecx
add eax, edx
push eax
call fcn.004e29c0
add esp, 0xc
test ebx, ebx
je 0x4ce2e4
cmp dword [esp + 0x70], 0
jne 0x4ce2b8
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 4]
add ecx, dword [esi + 0x47c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
push ebp
push ecx
add eax, edx
push eax
call fcn.004e29c0
add esp, 0xc
jmp 0x4ce2e4
xor eax, eax
test ebp, ebp
jle 0x4ce2e4
mov edi, edi
mov edx, dword [esi + 0x138]
mov ecx, dword [esi + 0x5d8]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ecx + 4]
add edx, dword [esi + 0x47c]
add eax, 1
cmp eax, ebp
mov byte [edx + eax - 1], 0
jl 0x4ce2c0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4ce3ed
cmp dword [esi + 0x2b2c], eax
jl 0x4ce301
movzx eax, word [esi + 0x2b2c]
jmp 0x4ce32a
mov eax, dword [esi + 0x47c]
test eax, eax
jle 0x4ce316
mov ecx, dword [esp + 0x68]
movzx eax, word [ecx + eax*2 - 2]
jmp 0x4ce32a
mov edx, dword [esi + 0x5d8]
push eax
push edx
push esi
call fcn.004a0ca0
add esp, 0xc
movzx eax, ax
mov ecx, dword [esi + 0x3434]
movzx edx, ax
imul edx, edx, 0x170
test byte [edx + ecx + 0x134], 0x80
je 0x4ce34e
cmp dword [esi + 0x2b2c], 0
jge 0x4ce34e
xor eax, eax
cmp dword [esi + 0x2b2c], 0xffffffff
jne 0x4ce380
movzx edx, ax
imul edx, edx, 0x170
cmp dword [edx + ecx + 0x144], 0
jle 0x4ce380
mov ecx, dword [esi + 0x47c]
mov edx, dword [esp + 0x68]
movzx ecx, word [edx + ecx*2]
cmp ax, cx
je 0x4ce380
movzx eax, cx
test dword [esi + 0xa17c], 0x400
jne 0x4ce39c
movzx eax, ax
push eax
push esi
call fcn.004af1f0
add esp, 8
movzx eax, ax
xor edi, edi
test ebp, ebp
jle 0x4ce410
mov edx, dword [esp + 0x4c]
movzx ecx, ax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
lea ebx, [eax + edx*2]
cmp dword [esp + 0x70], 0
je 0x4ce3c0
movzx eax, word [ebx]
jmp 0x4ce3c2
xor eax, eax
mov ecx, dword [esp + 0x20]
push eax
push ecx
push esi
call fcn.004ab7a0
mov edx, dword [esi + 0x47c]
mov ecx, dword [esp + 0x74]
add edx, edi
add edi, 1
add esp, 0xc
add ebx, 2
cmp edi, ebp
mov word [ecx + edx*2], ax
jl 0x4ce3b4
jmp 0x4ce410
mov ecx, dword [esi + 0x47c]
lea edx, [ebp + ebp]
push edx
mov edx, dword [esp + 0x6c]
lea ecx, [edx + ecx*2]
mov edx, dword [esp + 0x50]
push ecx
lea eax, [eax + edx*2]
push eax
call fcn.004e29c0
add esp, 0xc
xor ebx, ebx
xor eax, eax
cmp ebp, ebx
jle 0x4ce437
jmp 0x4ce420
mov ecx, dword [esi + 0x47c]
mov edx, dword [esp + 0x14]
add ecx, eax
add eax, 1
cmp eax, ebp
mov word [edx + ecx*2], bx
jl 0x4ce420
mov eax, dword [esi + 0x5d8]
push eax
push esi
call fcn.004ad180
add esp, 8
cmp dword [esp + 0x10], ebx
je 0x4ce45d
mov ecx, dword [esi + 0x5d8]
push ecx
push esi
call fcn.004abee0
add esp, 8
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 0x5d8]
mov ecx, dword [edx + eax*4]
mov edx, dword [esp + 0x7c]
cmp edx, ebx
mov edi, dword [ecx + 0x14]
je 0x4ce480
sub eax, dword [esp + 0x24]
mov eax, dword [edx + eax*4]
jmp 0x4ce488
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x4ce48b
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [esi + 0x2b3c]
jl 0x4ce4a8
mov dword [eax + 0x14], ebx
add dword [esi + 0x47c], ebp
mov ebp, dword [esp + 0x54]
cmp ebp, ebx
jne 0x4ce4c6
cmp dword [esp + 0x5c], ebx
je 0x4ce4c6
cmp dword [esp + 0x60], ebx
je 0x4ce77c
mov edx, dword [esi + 0x5e4]
add edx, 1
push edx
push esi
call fcn.004e2e50
add esp, 8
test eax, eax
je 0x4ce788
mov eax, dword [esi + 0x5d8]
push 0x41
push 1
push eax
push esi
call fcn.004f2400
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4 + 4]
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4]
mov dword [eax + 0x10], ebx
mov eax, dword [esi + 0x5d8]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + eax*4]
mov edi, dword [edx + 0xc]
add esp, 0x10
sub edi, dword [esi + 0x47c]
jns 0x4ce550
xor edi, edi
push edi
push ebx
add eax, 1
push eax
push esi
call fcn.00494d30
add esp, 0x10
cmp edi, ebx
jle 0x4ce5a6
mov eax, dword [esi + 0x5d8]
mov edx, dword [esi + 0x47c]
push edi
push ebx
lea ecx, [eax + 1]
push ecx
push edx
push eax
push esi
call fcn.004efc30
mov eax, dword [esi + 0x138]
mov ecx, dword [esi + 0x5d8]
mov edx, dword [eax + ecx*4]
mov edx, dword [edx + 0xc]
mov eax, edx
add esp, 0x18
sub eax, edi
jns 0x4ce59a
xor eax, eax
push eax
push edx
push ecx
push esi
call fcn.00494d30
add esp, 0x10
cmp dword [esp + 0x80], ebx
jne 0x4ce716
cmp dword [esi + 0x14], ebx
je 0x4ce716
cmp ebp, ebx
je 0x4ce716
mov ecx, dword [esi + 0x5d8]
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ecx*4]
mov ebp, dword [eax + 0xc]
cmp ebp, ebx
mov eax, dword [eax]
je 0x4ce5f4
mov al, byte [eax + ebp - 1]
cmp al, byte [esi + 0xb50]
jne 0x4ce5f4
cmp al, byte [esi + 0x58b4]
je 0x4ce716
lea edx, [ebp + 1]
push edx
push ebp
push ecx
push esi
call fcn.00494d30
mov ecx, dword [esi + 0x138]
mov eax, dword [esi + 0x5d8]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov cl, byte [esi + 0xb50]
mov byte [eax + ebp], cl
mov ecx, dword [esi + 0x5d8]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x7c]
push eax
push ecx
push esi
call fcn.004ad0c0
add esp, 0x20
cmp dword [esi + 0x2b2c], ebx
lea edi, [ebp + ebp]
jl 0x4ce651
mov dx, word [esi + 0x2b2c]
mov eax, dword [esp + 0x68]
mov word [edi + eax], dx
jmp 0x4ce67d
cmp ebp, ebx
jle 0x4ce664
mov eax, dword [esp + 0x68]
mov cx, word [edi + eax - 2]
mov word [edi + eax], cx
jmp 0x4ce67d
mov edx, dword [esi + 0x5d8]
push ebp
push edx
push esi
call fcn.004a0ca0
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov word [edi + ecx], ax
cmp dword [esi + 0x2b2c], 0xffffffff
mov ecx, dword [esp + 0x68]
jne 0x4ce6c8
movzx edx, word [edi + ecx]
mov eax, dword [esi + 0x3434]
imul edx, edx, 0x170
cmp dword [edx + eax + 0x144], ebx
jle 0x4ce6c8
mov ecx, dword [esi + 0x5d8]
push ebp
push ecx
push esi
call fcn.004a0d60
mov ecx, dword [esp + 0x74]
movzx edx, word [edi + ecx]
add esp, 0xc
cmp eax, edx
je 0x4ce6c8
mov word [edi + ecx], bx
mov ecx, dword [esp + 0x68]
movzx eax, word [edi + ecx]
mov edx, dword [esi + 0x3434]
imul eax, eax, 0x170
test byte [eax + edx + 0x134], 0x80
je 0x4ce6ea
mov word [edi + ecx], bx
mov ecx, dword [esp + 0x68]
movzx eax, word [edi + ecx]
push ebx
push eax
push esi
call fcn.004ab7a0
mov ecx, dword [esp + 0x74]
mov word [edi + ecx], ax
mov edx, dword [esp + 0x20]
mov word [edi + edx], bx
mov eax, dword [esi + 0x5d8]
push eax
push esi
call fcn.004ad180
add esp, 0x14
test dword [esi + 0xa16c], 0x200
je 0x4ce73d
cmp dword [esp + 0x10], ebx
je 0x4ce734
push ebx
push esi
call fcn.0053c8c0
add esp, 8
jmp 0x4ce73d
push esi
call fcn.0053cb00
add esp, 4
cmp dword [esp + 0x60], ebx
je 0x4ce756
mov ecx, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4]
or dword [eax + 0x38], 1
add dword [esi + 0x5d8], 1
mov ecx, dword [esi + 0x5d8]
mov eax, dword [esi + 0x5e4]
cmp ecx, eax
jl 0x4ce776
add eax, 0xffffffff
mov dword [esi + 0x5d8], eax
mov dword [esi + 0x47c], ebx
cmp dword [esp + 0x50], ebx
je 0x4ce180
jmp 0x4ce79e
push 0x801
call fcn.00494c70
push eax
push 0x58
push esi
call fcn.004e26e0
add esp, 0x10
test dword [esi + 0xa16c], 0x200
je 0x4ce7c7
cmp dword [esp + 0x10], 0
je 0x4ce7be
push 0
push esi
call fcn.0053c8c0
add esp, 8
jmp 0x4ce7c7
push esi
call fcn.0053cb00
add esp, 4
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
call fcn.004f88e0
mov eax, dword [esi + 0x47c]
mov ecx, dword [esi + 0x5d8]
push eax
push ecx
push esi
call fcn.004f6e40
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x50]
push ecx
add eax, 0xffffffff
push eax
push esi
call fcn.004f88e0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push 0x49
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
push esi
call fcn.004fa650
add esp, 0x44
cmp dword [esp + 0x1c], 0
je 0x4ce84b
mov eax, dword [esp + 0x74]
push eax
call fcn.004e2860
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e2860
mov edx, dword [esp + 0x78]
push edx
call fcn.004e2860
add esp, 0xc
add dword [esi + 0x114], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret