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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ee47a
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0xa0]
test eax, eax
je 0x4d1cc4
mov eax, dword [esi + 0x98]
cmp eax, 1
jne 0x4d19cb
mov ecx, dword [esi + 0xe0]
sub esp, 0x10
mov edi, esp
lea eax, [ecx + 0x14]
mov edx, dword [ecx]
mov ebx, dword [eax]
mov dword [edi], ebx
mov ebx, dword [eax + 4]
mov dword [edi + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x100]
mov eax, dword [eax + 0xc]
push ebx
mov dword [edi + 0xc], eax
call dword [edx + 0x98]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push ebx
mov ecx, esi
call dword [edx + 0x2f8]
mov ebp, dword [esp + 0xf4]
mov edi, eax
cmp dword [esi + 4], ebp
jne 0x4d10e7
mov edx, dword [esi + 8]
mov eax, dword [esp + 0xf8]
cmp edx, eax
je 0x4d1cc4
test edi, edi
je 0x4d17e8
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
push ecx
push edx
push ebx
mov ecx, esi
call dword [eax + 0x2f8]
cmp edi, eax
jne 0x4d17e8
push 0
push edi
mov ecx, ebx
call fcn.004bf6c0
lea ecx, [esp + 0x28]
call fcn.005c2ef9
lea eax, [esp + 0x28]
mov ecx, esi
push eax
mov dword [esp + 0xec], 0
call fcn.004d97a0
lea ecx, [esp + 0x74]
call fcn.005c2ef9
lea ecx, [esp + 0x74]
mov byte [esp + 0xe8], 1
push ecx
mov ecx, esi
call fcn.004d9820
lea ecx, [esp + 0x58]
call fcn.005c2ef9
mov eax, dword [esi + 4]
mov byte [esp + 0xe8], 2
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jle 0x4d1222
mov eax, dword [esi + 8]
mov edx, dword [esp + 0xf8]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jle 0x4d1222
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
lea ebp, [edi + 0x14]
push eax
mov ecx, ebp
sub esp, 0x10
mov eax, dword [ecx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x84]
push edx
call fcn.0053bd60
mov ecx, dword [eax]
add esp, 0x1c
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xf4]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [ebp + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x8c]
push eax
call fcn.0053bf10
mov ecx, dword [eax]
add esp, 0x24
mov dword [esp + 0x18], ecx
mov ebp, dword [eax + 4]
jmp 0x4d123d
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x10], ecx
mov ecx, ebp
mov ebp, dword [esp + 0xf8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jg 0x4d1330
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
mov dword [esp + 0x18], ecx
jge 0x4d126d
inc eax
dec ebp
mov dword [esp + 0x14], eax
jmp 0x4d1273
dec eax
inc ebp
mov dword [esp + 0x14], eax
lea edx, [esp + 0x58]
mov dword [esp + 0x1c], ebp
push edx
push ebp
push ecx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004c4a90
test eax, eax
je 0x4d145f
mov ecx, esi
call fcn.004c3b00
lea ecx, [esp + 0x3c]
call fcn.005c2ef9
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
mov byte [esp + 0xe8], 3
mov ebp, eax
jle 0x4d12fc
mov eax, dword [esp + 0x2c]
push 0x10
mov edi, dword [eax + esi*4]
call fcn.005c3c60
add esp, 4
test eax, eax
je 0x4d12e6
add edi, 0x14
mov ecx, eax
mov edx, dword [edi]
mov dword [ecx], edx
mov edx, dword [edi + 4]
mov dword [ecx + 4], edx
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0xc]
mov dword [ecx + 0xc], edx
jmp 0x4d12e8
xor eax, eax
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
call fcn.005c2898
inc esi
cmp esi, ebp
jl 0x4d12b4
lea ecx, [esp + 0x58]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push 1
push 2
lea ecx, [ebx + 0xb8]
call fcn.00521c00
mov byte [esp + 0xe8], 2
lea ecx, [esp + 0x3c]
jmp 0x4d141a
mov eax, dword [esp + 0x14]
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jg 0x4d16a3
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x1c], edx
jge 0x4d135c
inc eax
dec ecx
mov dword [esp + 0x10], eax
jmp 0x4d1362
dec eax
inc ecx
mov dword [esp + 0x10], eax
lea edi, [esp + 0x58]
mov dword [esp + 0x18], ecx
push edi
push edx
push ecx
push edx
push eax
push ebx
mov ecx, esi
call fcn.004c4d10
test eax, eax
je 0x4d145f
mov ecx, esi
call fcn.004c3b00
lea ecx, [esp + 0x3c]
call fcn.005c2ef9
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
mov byte [esp + 0xe8], 4
mov ebp, eax
jle 0x4d13eb
mov edx, dword [esp + 0x2c]
push 0x10
mov edi, dword [edx + esi*4]
call fcn.005c3c60
add esp, 4
test eax, eax
je 0x4d13d5
add edi, 0x14
mov ecx, eax
mov edx, dword [edi]
mov dword [ecx], edx
mov edx, dword [edi + 4]
mov dword [ecx + 4], edx
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0xc]
mov dword [ecx + 0xc], edx
jmp 0x4d13d7
xor eax, eax
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
call fcn.005c2898
inc esi
cmp esi, ebp
jl 0x4d13a3
lea ecx, [esp + 0x58]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push 1
push 2
lea ecx, [ebx + 0xb8]
call fcn.00521c00
mov byte [esp + 0xe8], 2
lea ecx, [esp + 0x3c]
call fcn.005c2f2c
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 1
call fcn.005c2f2c
lea ecx, [esp + 0x74]
mov byte [esp + 0xe8], 0
call fcn.005c2f2c
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005c2f2c
mov eax, 1
jmp 0x4d1cc6
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 1
call fcn.005c2f2c
lea ecx, [esp + 0x74]
mov byte [esp + 0xe8], 0
call fcn.005c2f2c
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005c2f2c
push ebx
lea ecx, [esp + 0xa4]
call fcn.005cbf94
mov eax, dword [esi + 0x14]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ebp, eax
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x1c]
add edi, ecx
add edx, eax
add ebp, ecx
push esi
mov dword [esp + 0xec], 0xd
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
call fcn.004eb860
add esp, 4
test eax, eax
je 0x4d1573
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x100]
mov edi, dword [eax + 0x14]
mov ebp, dword [eax + 0x18]
add eax, 0x14
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x100]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x100]
mov ecx, dword [eax + 0x14]
add eax, 0x14
add edi, ecx
mov ecx, esi
mov eax, dword [eax + 4]
add ebp, eax
mov eax, dword [esi]
call dword [eax + 0x100]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x100]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x100]
mov ecx, dword [eax + 0x14]
add eax, 0x14
mov edx, dword [esp + 0x14]
add edi, ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
add ebp, eax
mov eax, dword [esp + 0x10]
add eax, edi
add edx, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add ecx, edi
add eax, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004bfeb0
mov ecx, dword [ebx + 0x1f4]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.004bfdd0
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004bfe30
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.004bfeb0
mov edx, dword [ebx + 0x1f4]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
call fcn.004bfdd0
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.004bfe30
push 6
lea ecx, [esp + 0xa4]
call fcn.005cb843
mov ecx, dword [esi + 0x98]
mov edi, eax
cmp ecx, 2
mov eax, 1
jne 0x4d15ee
mov eax, 4
push 0
push eax
push 2
lea ecx, [esp + 0x9c]
call fcn.005cc2a9
lea edx, [esp + 0x90]
lea ecx, [esp + 0xa0]
push edx
mov byte [esp + 0xec], 0xe
call fcn.005cb70b
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push eax
push ecx
push edx
lea ecx, [esp + 0xac]
call fcn.005cbc8a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.005cbcd6
push esi
lea ecx, [esp + 0xa4]
call fcn.005cb70b
push edi
lea ecx, [esp + 0xa4]
call fcn.005cb843
mov dword [esp + 0x90], 0x1ac2184
lea ecx, [esp + 0x90]
mov byte [esp + 0xe8], 0xf
call fcn.005cc293
lea ecx, [esp + 0xa0]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005cc006
jmp 0x4d1cc4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xb8], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0xbc], ecx
mov ecx, dword [edi + 0x14]
neg eax
neg ecx
push eax
push ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], edx
push ecx
mov dword [esp + 0xcc], ebp
call dword [0x5ff81c]
push 0x90
call fcn.005c3c60
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
mov byte [esp + 0xe8], 5
je 0x4d1715
lea edx, [esp + 0xb4]
push 0
push edx
push 0
mov ecx, eax
call fcn.0052dc20
mov esi, eax
jmp 0x4d1717
xor esi, esi
mov eax, dword [esi]
push edi
mov ecx, esi
mov byte [esp + 0xec], 2
call dword [eax + 0xfc]
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
call dword [edx + 0x2dc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xc]
push 0xa
lea ecx, [esp + 0xc8]
call fcn.005c2d22
mov dword [esp + 0xc4], 0x1aca298
push esi
lea ecx, [esp + 0xc8]
mov byte [esp + 0xec], 6
call fcn.005c2dd4
lea eax, [esp + 0xc4]
push 1
push eax
push 2
lea ecx, [ebx + 0xb8]
call fcn.005212c0
push 0
push edi
mov ecx, ebx
call fcn.004bf6c0
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe8], 2
call fcn.005c2d81
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 1
call fcn.005c2f2c
lea ecx, [esp + 0x74]
mov byte [esp + 0xe8], 0
call fcn.005c2f2c
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005c2f2c
jmp 0x4d1cc4
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xf8]
push ecx
push edx
push eax
push ebp
call fcn.0053bd10
add esp, 0x10
cmp eax, 6
jl 0x4d1cc4
lea ecx, [esp + 0x74]
call fcn.005c2ef9
lea ecx, [esp + 0x74]
mov dword [esp + 0xe8], 7
push ecx
mov ecx, esi
call fcn.004d97a0
lea ecx, [esp + 0x28]
call fcn.005c2ef9
lea edx, [esp + 0x28]
mov ecx, esi
push edx
mov byte [esp + 0xec], 8
call fcn.004d9820
lea ecx, [esp + 0x58]
call fcn.005c2ef9
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0xf8]
mov eax, ecx
mov edi, dword [esi + 4]
sub eax, edx
mov byte [esp + 0xe8], 9
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, edi
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
cmp eax, edx
jl 0x4d18b5
lea eax, [esp + 0x18]
lea edx, [esp + 0x10]
push eax
push edx
push ecx
mov eax, ecx
push ebp
mov ecx, edi
push eax
push ecx
mov ecx, esi
call fcn.004c3ff0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x58]
push edx
push eax
push ebp
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004c4d10
jmp 0x4d18f0
mov edi, dword [esp + 0xf8]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
mov eax, dword [esi + 4]
push edi
push eax
mov edx, eax
push ecx
push edx
mov ecx, esi
call fcn.004c3e70
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x58]
push ecx
push edi
push eax
push edx
push eax
push ebx
mov ecx, esi
call fcn.004c4a90
mov ecx, esi
call fcn.004c3b00
lea ecx, [esp + 0x3c]
call fcn.005c2ef9
mov eax, dword [esp + 0x7c]
xor esi, esi
test eax, eax
mov byte [esp + 0xe8], 0xa
mov ebp, eax
jle 0x4d195c
mov ecx, dword [esp + 0x78]
push 0x10
mov edi, dword [ecx + esi*4]
call fcn.005c3c60
add esp, 4
test eax, eax
je 0x4d1946
add edi, 0x14
mov edx, eax
mov ecx, dword [edi]
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
jmp 0x4d1948
xor eax, eax
mov edx, dword [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.005c2898
inc esi
cmp esi, ebp
jl 0x4d1914
lea eax, [esp + 0x58]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
push 1
push 2
lea ecx, [ebx + 0xb8]
call fcn.00521c00
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe8], 9
call fcn.005c2f2c
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 8
call fcn.005c2f2c
lea ecx, [esp + 0x28]
mov byte [esp + 0xe8], 7
call fcn.005c2f2c
lea ecx, [esp + 0x74]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005c2f2c
jmp 0x4d1cc4
cmp eax, 2
jne 0x4d1cc4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0xf4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x2f8]
mov edi, dword [esp + 0xf4]
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0xf8]
cmp eax, edi
jne 0x4d1a1c
mov eax, dword [esi + 8]
cmp eax, ebp
jne 0x4d1a1c
mov ecx, dword [esi + 4]
mov edx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jmp 0x4d1cad
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push ebp
push edi
call fcn.0053bd10
add esp, 0x10
cmp eax, 6
jl 0x4d1c9f
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov eax, ecx
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
cmp eax, edx
jl 0x4d1a76
lea eax, [esp + 0x18]
lea edx, [esp + 0x10]
push eax
push edx
push ecx
mov eax, ecx
push edi
mov ecx, ebx
push eax
push ecx
mov ecx, esi
call fcn.004c3ff0
jmp 0x4d1a93
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
mov eax, dword [esi + 4]
push ebp
push eax
mov edx, eax
push ecx
push edx
mov ecx, esi
call fcn.004c3e70
push 0xa
lea ecx, [esp + 0x78]
call fcn.005c2d22
mov edi, 0x1aca298
mov dword [esp + 0x74], edi
push 0xa
lea ecx, [esp + 0x40]
mov dword [esp + 0xec], 0xb
call fcn.005c2d22
mov dword [esp + 0x3c], edi
mov ecx, esi
mov byte [esp + 0xe8], 0xc
call fcn.004ebb80
mov ebx, eax
xor edi, edi
test ebx, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x20], edi
jle 0x4d1c58
push edi
mov ecx, esi
call fcn.004c37d0
mov ecx, dword [eax + 0x8c]
mov dword [esp + 0x98], eax
test ecx, ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x24], 0
jle 0x4d1c4b
jmp 0x4d1b19
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00573b90
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
cmp ebx, ebp
mov edi, eax
jne 0x4d1bb9
mov edx, dword [edi + 0x20]
mov eax, ebp
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d1bb9
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x18]
dec edx
cmp edx, ecx
jg 0x4d1b60
lea edx, [eax + 1]
cmp dword [edi + 0x1c], edx
jle 0x4d1b73
lea edx, [eax - 1]
cmp edx, ecx
jg 0x4d1bbd
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x1c]
inc ecx
cmp edx, ecx
jg 0x4d1bbd
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x80]
mov ebp, eax
test ebp, ebp
je 0x4d1c43
push edi
lea ecx, [esp + 0x40]
call fcn.005c2dd4
push ebp
lea ecx, [esp + 0x78]
call fcn.005c2dd4
mov ecx, dword [esp + 0xf0]
mov eax, dword [edi]
push 1
push 5
push ecx
mov ecx, edi
call dword [eax + 0x204]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], eax
jne 0x4d1c2b
sub eax, dword [edi + 0x1c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d1c2b
mov eax, dword [edi + 0x18]
lea edx, [ebx - 1]
cmp edx, eax
jg 0x4d1be4
mov edx, dword [edi + 0x20]
lea ecx, [ebp + 1]
cmp edx, ecx
jle 0x4d1bf1
dec ebp
cmp ebp, eax
jg 0x4d1c2b
mov eax, dword [edi + 0x20]
inc ebx
cmp eax, ebx
jg 0x4d1c2b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x80]
mov ebp, eax
test ebp, ebp
je 0x4d1c43
push edi
lea ecx, [esp + 0x40]
call fcn.005c2dd4
push ebp
lea ecx, [esp + 0x78]
call fcn.005c2dd4
mov ecx, dword [esp + 0xf0]
mov eax, dword [edi]
push 0
push 5
push ecx
mov ecx, edi
call dword [eax + 0x204]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4d1b12
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x6c]
inc edi
cmp edi, ebx
mov dword [esp + 0x20], edi
jl 0x4d1ae4
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x74]
push 0
lea eax, [esp + 0x40]
push edx
push eax
push 2
add ecx, 0xb8
call fcn.00522410
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe8], 0xb
call fcn.005c2d81
lea ecx, [esp + 0x74]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005c2d81
jmp 0x4d1cb5
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0xf0]
push 0
push esi
call fcn.004bf6c0
xor eax, eax
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xdc
ret 0xc