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

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov esi, ecx
push edi
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push ecx
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], 0
call dword [eax + 0x10]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ebp
call dword [edx + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov edi, dword [esi + 8]
mov eax, dword [esp + 0x34]
add edi, 4
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x10d2bf4d
cmp eax, dword [edi + 8]
jbe 0x10d2bf4d
push eax
call fcn.10d2f8d0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10d2bedf
lea ecx, [esp + 0x48]
call fcn.10c23e60
lea eax, [esp + 0x48]
push 0x10dc5428
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
jbe 0x10d2bf12
call fcn.10d2a2c0
imul eax, ebx
add eax, dword [edi]
push eax
call fcn.10d2a2c0
imul eax, ebx
add eax, dword [esp + 0x20]
push eax
call fcn.10d2a530
mov eax, dword [esp + 0x2c]
add esp, 8
inc ebx
cmp ebx, eax
jb 0x10d2bee9
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10d2bf24
mov ecx, dword [edi]
push ecx
call fcn.10d2dcb0
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call sub.libjcc.dll_JagMemory_size
mov ebx, eax
call fcn.10d2a2c0
mov ecx, eax
mov eax, ebx
xor edx, edx
mov dword [edi + 0xc], 1
div ecx
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x34]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x1c], eax
jb 0x10d2c8b2
jmp 0x10d2bf76
mov ebp, dword [esp + 0x12c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jl 0x10d2c8b2
xor edi, edi
lea edx, [esp + 0x38]
push edi
push edx
lea edx, [esp + 0x44]
mov ecx, dword [ebp]
push edx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x3c]
push edx
push eax
push ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
lea ebx, [eax - 1]
call dword [ecx + 0x14]
cmp eax, edi
mov dword [esp + 0x30], eax
jl case.0x10d2c1e4.9
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push eax
and edx, 0xffff
push ecx
push edx
call fcn.10d2c970
mov edi, dword [esi + 8]
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x10], ebp
call fcn.10d2a2c0
imul eax, ebx
mov ecx, dword [edi + 4]
mov dword [eax + ecx + 0x14], ebp
mov edi, dword [esi + 8]
add eax, ecx
call fcn.10d2a2c0
imul eax, ebx
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x44]
add eax, edx
mov dword [eax], ecx
mov edi, dword [esi + 8]
call fcn.10d2a2c0
imul eax, ebx
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x38]
add eax, ecx
mov dword [eax + 4], edx
cmp word [esp + 0x3c], 5
mov edi, dword [esi + 8]
jne 0x10d2c03d
call fcn.10d2a2c0
imul eax, ebx
mov ecx, dword [edi + 4]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
jmp 0x10d2c052
call fcn.10d2a2c0
imul eax, ebx
mov ecx, dword [edi + 4]
mov dword [eax + ecx + 8], 0
add eax, ecx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10d2c067
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [edx + 0x14]
jmp 0x10d2c08d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x110]
push edx
push str.col_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x11c]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [esp + 0x28]
imul ebp, ebx
mov eax, dword [edi + 4]
push edx
add ebp, eax
call fcn.10d2a8a0
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.10d2a230
mov dword [ebp + 0xc], edi
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x10d2c0d2
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x10d2c0da
mov dword [esp + 0x28], 0x10e2e0d8
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov eax, dword [esp + 0x28]
imul ebp, ebx
mov edx, dword [edi + 4]
push eax
add ebp, edx
call fcn.10d2a8a0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edi, eax
push ecx
call fcn.10d2a230
add esp, 4
mov dword [ebp + 0x10], edi
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0xdc]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x40], eax
jbe 0x10d2c1c2
cmp eax, dword [ebp + 0xe0]
jbe 0x10d2c1c2
push eax
call fcn.10d2d690
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10d2c168
lea ecx, [esp + 0x48]
call fcn.10c23e60
lea edx, [esp + 0x48]
push 0x10dc5428
push edx
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0xd8]
mov ecx, edi
mov edi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xe4]
test eax, eax
je 0x10d2c19e
mov eax, dword [ebp + 0xd8]
test eax, eax
je 0x10d2c19e
push 1
push eax
call sub.libjcc.dll_JagMemory__free
mov esi, dword [esp + 0x14]
push esi
call sub.libjcc.dll_JagMemory_size
mov dword [ebp + 0xd8], esi
mov esi, dword [esp + 0x20]
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xe4], 1
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0xdc], ecx
lea eax, [edx + 7]
cmp eax, 0x64
ja case.0x10d2c1e4.9
xor ecx, ecx
mov cl, byte [eax + 0x10d2c908]
jmp dword [ecx*4 + 0x10d2c8c4]
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0x1c]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jbe 0x10d2c281
cmp eax, dword [ebp + 0x20]
jbe 0x10d2c281
push eax
call fcn.10d2d690
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10d2c23f
lea ecx, [esp + 0xac]
call fcn.10c23e60
lea edx, [esp + 0xac]
push 0x10dc5428
push edx
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x18]
mov ecx, edi
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10d2c26a
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10d2c26a
push 1
push eax
call sub.libjcc.dll_JagMemory__free
push ebx
call sub.libjcc.dll_JagMemory_size
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x24], 1
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x1c], ecx
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0x2c]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jbe 0x10d2c323
cmp eax, dword [ebp + 0x30]
jbe 0x10d2c323
push eax
call fcn.10d2d710
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10d2c2e1
lea ecx, [esp + 0x84]
call fcn.10c23e60
lea edx, [esp + 0x84]
push 0x10dc5428
push edx
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x28]
mov ecx, edi
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x10d2c30c
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x10d2c30c
push 1
push eax
call sub.libjcc.dll_JagMemory__free
push ebx
call sub.libjcc.dll_JagMemory_size
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x34], 1
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x2c], ecx
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0x3c]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jbe 0x10d2c3c8
cmp eax, dword [ebp + 0x40]
jbe 0x10d2c3c8
push eax
call fcn.10d2d790
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10d2c383
lea ecx, [esp + 0xd4]
call fcn.10c23e60
lea edx, [esp + 0xd4]
push 0x10dc5428
push edx
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x38]
lea ecx, [edi + edi]
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x10d2c3af
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x10d2c3af
push 1
push eax
call sub.libjcc.dll_JagMemory__free
push ebx
call sub.libjcc.dll_JagMemory_size
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x38], ebx
shr eax, 1
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], 1
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x3c], ecx
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0x4c]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jbe 0x10d2c45b
cmp eax, dword [ebp + 0x50]
jbe 0x10d2c45b
push eax
call fcn.10d2d810
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10d2c422
lea ecx, [esp + 0x5c]
call fcn.10c23e60
lea edx, [esp + 0x5c]
push 0x10dc5428
push edx
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x48]
mov ecx, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x10d2c441
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x10d2c441
push 1
push eax
call sub.libjcc.dll_JagMemory__free
push ebx
call sub.libjcc.dll_JagMemory_size
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x48], ebx
shr eax, 2
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], 1
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x4c], eax
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0x5c]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jbe 0x10d2c4f4
cmp eax, dword [ebp + 0x60]
jbe 0x10d2c4f4
push eax
call fcn.10d2d890
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10d2c4bb
lea ecx, [esp + 0xfc]
call fcn.10c23e60
lea ecx, [esp + 0xfc]
push 0x10dc5428
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x58]
mov ecx, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x10d2c4da
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x10d2c4da
push 1
push eax
call sub.libjcc.dll_JagMemory__free
push ebx
call sub.libjcc.dll_JagMemory_size
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x58], ebx
shr eax, 2
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], 1
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x5c], edx
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
mov ebp, eax
mov edx, dword [edi + 4]
imul ebp, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + edx + 0x6c]
add ebp, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jbe 0x10d2c598
cmp eax, dword [ebp + 0x70]
jbe 0x10d2c598
push eax
call fcn.10d2d910
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10d2c54e
lea ecx, [esp + 0x70]
call fcn.10c23e60
lea eax, [esp + 0x70]
push 0x10dc5428
push eax
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 0x68]
lea ecx, [edi*8]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x10d2c57e
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10d2c57e
push 1
push eax
call sub.libjcc.dll_JagMemory__free
push ebx
call sub.libjcc.dll_JagMemory_size
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x68], ebx
shr eax, 3
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], 1
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x6c], eax
jmp case.0x10d2c1e4.9
mov ebp, dword [esi + 8]
call fcn.10d2a2c0
mov edi, eax
mov edx, dword [ebp + 4]
imul edi, ebx
mov eax, dword [esp + 0x18]
mov ebp, dword [edi + edx + 0x7c]
add edi, edx
cmp eax, ebp
mov dword [esp + 0x10], eax
jbe 0x10d2c65c
cmp eax, dword [edi + 0x80]
jbe 0x10d2c65c
push eax
call fcn.10d2d9b0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10d2c605
lea ecx, [esp + 0x98]
call fcn.10c23e60
lea ecx, [esp + 0x98]
push 0x10dc5428
push ecx
call sub.MSVCRT.dll__CxxThrowException
xor ebx, ebx
test ebp, ebp
jbe 0x10d2c626
mov edx, dword [edi + 0x78]
mov eax, dword [edx + ebx*4]
push eax
call fcn.10d2a8a0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, ebp
jb 0x10d2c60b
mov eax, dword [edi + 0x84]
test eax, eax
je 0x10d2c63c
mov edx, dword [edi + 0x78]
push edx
call fcn.10d2deb0
add esp, 4
mov ebx, dword [esp + 0x14]
push ebx
call sub.libjcc.dll_JagMemory_size
shr eax, 2
mov dword [edi + 0x80], eax
mov dword [edi + 0x78], ebx
mov dword [edi + 0x84], 1
mov eax, dword [esp + 0x10]
mov dword [edi + 0x7c], eax
jmp case.0x10d2c1e4.9
mov ebp, dword [esi + 8]
call fcn.10d2a2c0
mov edi, eax
mov eax, dword [esp + 0x18]
imul edi, ebx
mov ebx, dword [ebp + 4]
mov dword [esp + 0x10], eax
add edi, ebx
mov ecx, dword [edi + 0x8c]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jbe 0x10d2c735
cmp eax, dword [edi + 0x90]
jbe 0x10d2c735
push eax
call fcn.10d2f9e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10d2c6cd
lea ecx, [esp + 0xc0]
call fcn.10c23e60
lea ecx, [esp + 0xc0]
push 0x10dc5428
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10d2c6fd
mov edx, eax
xor ebx, ebx
mov dword [esp + 0x14], edx
mov eax, dword [edi + 0x88]
lea ecx, [ebp + ebx]
add eax, ebx
push eax
call fcn.10d2f930
mov eax, dword [esp + 0x14]
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x10d2c6dd
mov eax, dword [edi + 0x94]
test eax, eax
je 0x10d2c716
mov ecx, dword [edi + 0x88]
push ecx
call fcn.10d2def0
add esp, 4
push ebp
call sub.libjcc.dll_JagMemory_size
shr eax, 4
mov dword [edi + 0x90], eax
mov dword [edi + 0x88], ebp
mov dword [edi + 0x94], 1
mov edx, dword [esp + 0x10]
mov dword [edi + 0x8c], edx
jmp case.0x10d2c1e4.9
mov ebp, dword [esi + 8]
call fcn.10d2a2c0
mov edi, eax
mov eax, dword [esp + 0x18]
imul edi, ebx
mov ebx, dword [ebp + 4]
mov dword [esp + 0x10], eax
add edi, ebx
mov ecx, dword [edi + 0x9c]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jbe 0x10d2c811
cmp eax, dword [edi + 0xa0]
jbe 0x10d2c811
push eax
call fcn.10d2fa30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10d2c7a9
lea ecx, [esp + 0xe8]
call fcn.10c23e60
lea eax, [esp + 0xe8]
push 0x10dc5428
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10d2c7d9
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov edx, dword [edi + 0x98]
lea ecx, [ebp + ebx]
add edx, ebx
push edx
call fcn.10d2f930
mov eax, dword [esp + 0x14]
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x10d2c7b9
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x10d2c7f2
mov eax, dword [edi + 0x98]
push eax
call fcn.10d2df30
add esp, 4
push ebp
call sub.libjcc.dll_JagMemory_size
shr eax, 4
mov dword [edi + 0xa0], eax
mov dword [edi + 0x98], ebp
mov dword [edi + 0xa4], 1
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x9c], ecx
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
imul eax, ebx
mov edx, dword [edi + 4]
add eax, edx
mov edx, dword [esp + 0x18]
push edx
lea ecx, [eax + 0xa8]
call fcn.10d2fa80
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
imul eax, ebx
mov ebx, dword [edi + 4]
mov ecx, dword [esp + 0x18]
add eax, ebx
push ecx
lea ecx, [eax + 0xb8]
call fcn.10d2eb20
jmp case.0x10d2c1e4.9
mov edi, dword [esi + 8]
call fcn.10d2a2c0
imul eax, ebx
mov edx, dword [edi + 4]
add eax, edx
mov edx, dword [esp + 0x18]
push edx
lea ecx, [eax + 0xc8]
call fcn.10d2ebc0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10d2c88f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10d2c89d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x10d2bf6b
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4