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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov cx, word [esi + 0x2c]
mov edx, dword [esi + 0x18]
push ebx
push edi
mov edi, eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x1c]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov word [ebp - 0x38], cx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jl 0x4d06a5
cmp dword [ebp + 0x10], ebx
jl 0x4d06a5
mov edx, dword [edi]
mov eax, dword [edx + 0x218]
mov ecx, edi
call eax
cmp dword [ebp + 0xc], eax
jge 0x4d06a5
cmp dword [ebp + 0x10], 0x40
jge 0x4d06a5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push ecx
mov eax, edi
call fcn.004d61f0
test eax, eax
je 0x4d06a5
movzx edx, byte [eax + 0x14]
cmp dword [ebp + 0x10], edx
jne 0x4d06a5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x34]
push ebx
add ecx, 0xffffffff
push ecx
push edx
push 3
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.004d1af0
mov ebx, eax
cmp dword [ebp - 0xc], ebx
jg 0x4d06aa
mov dword [ebp - 0xc], ebx
jmp 0x4d06ad
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x4d06ba
mov ebx, dword [edi + 0xf3c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x4c], ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jl 0x4d071e
cmp dword [ebp + 0x10], ebx
jl 0x4d071e
mov eax, dword [edi]
mov edx, dword [eax + 0x218]
mov ecx, edi
call edx
cmp dword [ebp + 0xc], eax
jge 0x4d071e
cmp dword [ebp + 0x10], 0x40
jge 0x4d071e
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push eax
mov eax, edi
call fcn.004d61f0
test eax, eax
je 0x4d071e
movzx ecx, byte [eax + 0x14]
cmp dword [ebp + 0x10], ecx
jne 0x4d071e
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
add eax, 1
push eax
push ecx
push 1
mov ecx, edi
mov dword [ebp - 0x10], edx
call fcn.004d1af0
mov ebx, eax
cmp dword [ebp - 0x10], ebx
jg 0x4d0723
mov dword [ebp - 0x10], ebx
jmp 0x4d0726
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x4d0733
mov ebx, dword [edi + 0xf3c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x48], ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jl 0x4d0797
cmp dword [ebp + 0x10], ebx
jl 0x4d0797
mov edx, dword [edi]
mov eax, dword [edx + 0x218]
mov ecx, edi
call eax
cmp dword [ebp + 0xc], eax
jge 0x4d0797
cmp dword [ebp + 0x10], 0x40
jge 0x4d0797
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push ecx
mov eax, edi
call fcn.004d61f0
test eax, eax
je 0x4d0797
movzx edx, byte [eax + 0x14]
cmp dword [ebp + 0x10], edx
jne 0x4d0797
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push ecx
add edx, 0xffffffff
push edx
push 2
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.004d1af0
mov ebx, eax
cmp dword [ebp - 0x14], ebx
jg 0x4d079c
mov dword [ebp - 0x14], ebx
jmp 0x4d079f
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x4d07ac
mov ebx, dword [edi + 0xf38]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x54], ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jl 0x4d080f
cmp dword [ebp + 0x10], ebx
jl 0x4d080f
mov eax, dword [edi]
mov edx, dword [eax + 0x218]
mov ecx, edi
call edx
cmp dword [ebp + 0xc], eax
jge 0x4d080f
cmp dword [ebp + 0x10], 0x40
jge 0x4d080f
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push eax
mov eax, edi
call fcn.004d61f0
test eax, eax
je 0x4d080f
movzx ecx, byte [eax + 0x14]
cmp dword [ebp + 0x10], ecx
jne 0x4d080f
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
add ecx, 1
push ecx
push ebx
mov ecx, edi
mov dword [ebp - 8], edx
call fcn.004d1af0
mov ebx, eax
cmp dword [ebp - 8], ebx
jg 0x4d0812
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], 0
jne 0x4d0821
mov edx, dword [edi + 0xf38]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
movsx eax, word [edi + 0xe]
add eax, 1
mov dword [ebp - 0x18], eax
movsx eax, word [edi + 0xc]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
mov ebx, edi
mov dword [ebp - 0x40], edx
call fcn.004d1730
xor ebx, ebx
mov dword [ebp + 8], 0
mov eax, ebx
cmp dword [ebp + 0x10], ebx
jne 0x4d087b
cmp eax, ebx
jne 0x4d087b
cmp dword [edi + 0xd9c], ebx
jge 0x4d09da
cmp dword [ebp + eax*4 - 0x4c], 1
jle 0x4d09da
cmp eax, ebx
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
mov ecx, esi
jne 0x4d090b
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0x2c], bx
mov word [ebp - 0x2a], bx
mov word [ebp - 0x28], bx
call edx
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4d08ae
jmp dword [eax*4 + 0x4d0ba4]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 1
mov ecx, esi
call edx
mov eax, 1
jmp 0x4d08f9
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 1
jmp 0x4d08f9
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 2
jmp 0x4d08f9
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 3
mov ecx, esi
call edx
mov eax, 3
mov edx, dword [esi]
push 1
push eax
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
movsx ebx, word [ebp - 0x42]
jmp 0x4d0983
lea eax, [ebp - 0x34]
push eax
mov word [ebp - 0x34], bx
mov word [ebp - 0x32], bx
mov word [ebp - 0x30], bx
call edx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4d0928
jmp dword [eax*4 + 0x4d0bb4]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 1
mov ecx, esi
call edx
mov eax, 1
jmp 0x4d0973
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 1
jmp 0x4d0973
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 2
jmp 0x4d0973
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 3
mov ecx, esi
call edx
mov eax, 3
mov edx, dword [esi]
push 1
push eax
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
movsx ebx, word [ebp - 0x3e]
mov ecx, ebx
sub ecx, dword [ebp - 0x18]
and ecx, 0x80000001
jns 0x4d0995
dec ecx
or ecx, 0xfffffffe
inc ecx
mov edx, dword [esi]
mov ecx, esi
je 0x4d09ab
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 0
jmp 0x4d09b3
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov eax, dword [edx]
call eax
movsx eax, word [ebp - 0x44]
mov edx, dword [esi]
mov edx, dword [edx + 0x74]
push eax
push ebx
mov ecx, esi
call edx
movsx ecx, word [ebp - 0x40]
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push ecx
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp + 8]
xor ebx, ebx
add eax, 1
cmp eax, 2
mov dword [ebp + 8], eax
jl 0x4d0866
xor edi, edi
jmp 0x4d09f0
cmp dword [ebp + 0xc], ebx
jne 0x4d09fd
cmp edi, ebx
je 0x4d0b5a
cmp dword [ebp + edi*4 - 0x54], 1
jle 0x4d0b5a
cmp edi, ebx
jne 0x4d0a8a
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov word [ebp - 0x34], bx
mov word [ebp - 0x32], bx
mov word [ebp - 0x30], bx
call edx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4d0a30
jmp dword [eax*4 + 0x4d0bc4]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 1
mov ecx, esi
call edx
xor eax, eax
jmp 0x4d0a78
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 1
jmp 0x4d0a78
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 2
jmp 0x4d0a78
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 2
mov ecx, esi
call edx
mov eax, 3
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x34]
push 1
mov ecx, esi
call eax
movsx ebx, word [ebp - 0x44]
jmp 0x4d0b06
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov word [ebp - 0x2c], bx
mov word [ebp - 0x2a], bx
mov word [ebp - 0x28], bx
call edx
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4d0aae
jmp dword [eax*4 + 0x4d0bd4]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 1
mov ecx, esi
call edx
xor eax, eax
jmp 0x4d0af6
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 1
jmp 0x4d0af6
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
mov ecx, esi
call edx
mov eax, 2
jmp 0x4d0af6
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 2
mov ecx, esi
call edx
mov eax, 3
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x34]
push 1
mov ecx, esi
call eax
movsx ebx, word [ebp - 0x40]
mov ecx, ebx
sub ecx, dword [ebp - 0x1c]
and ecx, 0x80000001
jns 0x4d0b18
dec ecx
or ecx, 0xfffffffe
inc ecx
mov edx, dword [esi]
mov ecx, esi
je 0x4d0b2e
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 1
jmp 0x4d0b36
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov eax, dword [edx]
call eax
movsx eax, word [ebp - 0x42]
mov edx, dword [esi]
mov edx, dword [edx + 0x74]
push ebx
push eax
mov ecx, esi
call edx
movsx ecx, word [ebp - 0x3e]
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push ebx
push ecx
mov ecx, esi
call edx
xor ebx, ebx
add edi, 1
cmp edi, 2
jl 0x4d09f0
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, esi
call edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
push ecx
push edx
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push ebx
mov ecx, esi
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc