Function at 0x498e80
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 0x498eaf
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 0x498f9f
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 0x498f26
cmp dword [esp + 0x48], ebx
jne 0x498f26
test ecx, ecx
je 0x498f2d
mov dword [esi + 0x18], 1
mov ecx, dword [esi + 8]
cmp ecx, 1
jne 0x498f46
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 0x498f94
mov ebp, 1
cmp ecx, ebp
jbe 0x498f8e
lea edi, [esi + 0x90]
jmp 0x498f60
mov edx, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [edi + 0x14]
call eax
cmp dword [esp + 0x40], 0
jne 0x498f82
cmp dword [esp + 0x3c], 0
je 0x498f85
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x14], ecx
jne 0x498f85
mov eax, dword [esi + 0x14]
inc ebp
add edi, 0x18
cmp ebp, dword [esi + 8]
jb 0x498f60
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 0x498fd6
cmp dword [esi + 4], ebx
jne 0x498fca
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, 0x60000
call eax
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x498fca
pop ebp
pop edi
mov eax, 2
pop ebx
add esp, 0x24
ret 0x1c
mov dword [esp + 0x4c], ebx
jmp 0x498fd6
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 0x499160
jmp 0x499000
lea ecx, [edi + edi*2 + 0xf]
lea ebp, [esi + ecx*8]
mov dword [esp + 0x28], ebp
test edi, edi
jne 0x499027
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 0x499044
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 0x499065
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 0x499083
mov edx, dword [esi + edi*4 + 0x30]
cmp edx, dword [esi + edi*4 + 0x3c]
jne 0x499140
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 0x49909f
cmp dword [esp + 0x3c], 0
jne 0x499140
mov dword [esp + 0x3c], ebx
jmp 0x499140
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 0x4990d0
mov dword [esi + edi*4 + 0x68], eax
cmp dword [esp + 0x3c], ebp
jne 0x4990d0
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, 1
sete cl
cmp ecx, ebp
jne 0x4990f4
cmp dword [esi + 8], 1
mov dword [esp + 0x20], ebp
jne 0x4990f4
cmp eax, ebp
jne 0x4990f4
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
cmp edi, ebp
jne 0x499108
mov eax, dword [esp + 0x44]
add dword [eax], edx
add dword [esp + 0x40], edx
jmp 0x49910c
add dword [esi + edi*4 + 0x2c], edx
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
mov eax, dword [esp + 0x10]
jne 0x499124
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
add dword [esp + 0x34], eax
jmp 0x499130
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 0x499138
cmp edx, ebp
je 0x499140
mov dword [esp + 0x1c], 1
inc edi
cmp edi, dword [esi + 8]
jb 0x499000
cmp dword [esp + 0x1c], 0
jne 0x498fd0
cmp dword [esp + 0x20], 0
je 0x499167
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