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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push ebx
push edi
mov edi, dword [esp + 0x40]
mov edx, dword [edi]
xor ebx, ebx
mov dword [ecx], ebx
mov dword [edi], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
cmp dword [esi + 0x18], ebx
je 0x4941cf
mov eax, dword [esi + 0x1c]
pop edi
pop ebx
add esp, 0x24
ret 0x1c
push ebp
lea ebp, [esi + 0x20]
mov dword [esp + 0x14], ebp
mov dword [ebp], 2
cmp dword [esi + 0xc], ebx
je 0x4942bf
mov ecx, dword [esp + 0x48]
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esi + 0x88]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x78]
xor edx, edx
call eax
mov edx, dword [esp + 0x44]
xor ecx, ecx
cmp dword [ebp], 1
mov ebx, eax
sete cl
mov dword [esi + 0x1c], ebx
mov dword [edi], edx
mov edx, dword [esp + 0x34]
add dword [esi + 0x14], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], ecx
test ebx, ebx
jne 0x494246
cmp dword [esp + 0x48], ebx
jne 0x494246
test ecx, ecx
je 0x49424d
mov dword [esi + 0x18], 1
mov ecx, dword [esi + 8]
cmp ecx, 1
jne 0x494266
mov eax, dword [esp + 0x38]
pop ebp
mov dword [eax], edx
pop edi
mov eax, ebx
pop ebx
add esp, 0x24
ret 0x1c
cmp dword [esi + 0x18], 0
je 0x4942b4
mov ebp, 1
cmp ecx, ebp
jbe 0x4942ae
lea edi, [esi + 0x90]
jmp 0x494280
mov edx, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [edi + 0x14]
call eax
cmp dword [esp + 0x40], 0
jne 0x4942a2
cmp dword [esp + 0x3c], 0
je 0x4942a5
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x14], ecx
jne 0x4942a5
mov eax, dword [esi + 0x14]
inc ebp
add edi, 0x18
cmp ebp, dword [esi + 8]
jb 0x494280
mov edx, dword [esp + 0x38]
mov dword [edx], eax
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x24
ret 0x1c
cmp dword [esi + 8], 1
je 0x4942f6
cmp dword [esi + 4], ebx
jne 0x4942ea
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, 0x60000
call eax
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4942ea
pop ebp
pop edi
mov eax, 2
pop ebx
add esp, 0x24
ret 0x1c
mov dword [esp + 0x4c], ebx
jmp 0x4942f6
mov ebp, dword [esp + 0x14]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x3c], ebx
mov dword [ebp], 2
cmp dword [esi + 8], edi
jbe 0x494480
jmp 0x494320
lea ecx, [edi + edi*2 + 0xf]
lea ebp, [esi + ecx*8]
mov dword [esp + 0x28], ebp
test edi, edi
jne 0x494347
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
sub edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
jmp 0x494364
mov edx, dword [esi + edi*4 + 0x2c]
mov ebx, dword [esi + edi*4 + 0x38]
mov ecx, dword [esi + edi*4 + 0x20]
lea eax, [edi - 1]
shl eax, 0x11
add eax, dword [esi + 4]
add eax, edx
sub ebx, edx
mov dword [esp + 0xc], ebx
mov edx, dword [esi + 8]
dec edx
cmp edi, edx
jne 0x494385
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
sub ebx, dword [ebp]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
jmp 0x4943a3
mov edx, dword [esi + edi*4 + 0x30]
cmp edx, dword [esi + edi*4 + 0x3c]
jne 0x494460
mov edx, edi
shl edx, 0x11
add edx, dword [esi + 4]
mov dword [esp + 0x10], 0x20000
mov ebx, dword [esi + edi*4 + 0x68]
test ebx, ebx
je 0x4943bf
cmp dword [esp + 0x3c], 0
jne 0x494460
mov dword [esp + 0x3c], ebx
jmp 0x494460
lea ebx, [esp + 0x2c]
push ebx
push dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
call eax
xor ebp, ebp
cmp eax, ebp
je 0x4943f0
mov dword [esi + edi*4 + 0x68], eax
cmp dword [esp + 0x3c], ebp
jne 0x4943f0
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, 1
sete cl
cmp ecx, ebp
jne 0x494414
cmp dword [esi + 8], 1
mov dword [esp + 0x20], ebp
jne 0x494414
cmp eax, ebp
jne 0x494414
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
cmp edi, ebp
jne 0x494428
mov eax, dword [esp + 0x44]
add dword [eax], edx
add dword [esp + 0x40], edx
jmp 0x49442c
add dword [esi + edi*4 + 0x2c], edx
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
mov eax, dword [esp + 0x10]
jne 0x494444
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
add dword [esp + 0x34], eax
jmp 0x494450
mov dword [esi + edi*4 + 0x3c], eax
mov dword [esi + edi*4 + 0x30], ebp
mov dword [esi + edi*4 + 0x24], ecx
cmp eax, ebp
jne 0x494458
cmp edx, ebp
je 0x494460
mov dword [esp + 0x1c], 1
inc edi
cmp edi, dword [esi + 8]
jb 0x494320
cmp dword [esp + 0x1c], 0
jne 0x4942f0
cmp dword [esp + 0x20], 0
je 0x494487
mov ebp, dword [esp + 0x14]
mov dword [ebp], 1
mov eax, dword [esp + 0x3c]
pop ebp
pop edi
pop ebx
add esp, 0x24
ret 0x1c