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

Disassembly:
sub esp, 8
push edi
mov edi, ecx
xor eax, eax
mov ecx, dword [edi + 0xb0]
mov dword [esp + 8], eax
dec ecx
mov dword [esp + 4], ecx
js 0x4982c4
push ebx
mov bl, byte [esp + 0x14]
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xb0]
cmp eax, ecx
jge 0x4980a1
test eax, eax
jl 0x4980a1
mov ecx, dword [edi + 0xac]
mov ebp, dword [ecx + eax*4]
jmp 0x4980a3
xor ebp, ebp
mov edx, dword [esp + 0x20]
lea esi, [ebp + 4]
push esi
push edx
call dword [0x4d6380]
test eax, eax
je 0x4980d3
push esi
call fcn.00471a00
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [0x4d6380]
test eax, eax
jne 0x4982ae
test bl, 4
mov dword [esp + 0x14], 1
je 0x498104
mov edx, dword [edi + 0x5c]
lea ecx, [edi + 0x54]
xor eax, eax
test edx, edx
jle 0x4980fb
mov esi, dword [ecx + 4]
cmp dword [esi], ebp
je 0x4980fe
inc eax
add esi, 4
cmp eax, edx
jl 0x4980ef
or eax, 0xffffffff
push eax
call fcn.0049c210
test bl, 8
je 0x49812d
mov edx, dword [edi + 0x78]
lea ecx, [edi + 0x70]
xor eax, eax
test edx, edx
jle 0x498124
mov esi, dword [ecx + 4]
cmp dword [esi], ebp
je 0x498127
inc eax
add esi, 4
cmp eax, edx
jl 0x498118
or eax, 0xffffffff
push eax
call fcn.0049c210
test bl, 1
je 0x498155
mov edx, dword [edi + 8]
xor eax, eax
test edx, edx
jle 0x49814a
mov ecx, dword [edi + 4]
cmp dword [ecx], ebp
je 0x49814d
inc eax
add ecx, 4
cmp eax, edx
jl 0x49813e
or eax, 0xffffffff
push eax
mov ecx, edi
call fcn.0049c210
test bl, 2
je 0x49817e
mov edx, dword [edi + 0x40]
lea ecx, [edi + 0x38]
xor eax, eax
test edx, edx
jle 0x498175
mov esi, dword [ecx + 4]
cmp dword [esi], ebp
je 0x498178
inc eax
add esi, 4
cmp eax, edx
jl 0x498169
or eax, 0xffffffff
push eax
call fcn.0049c210
test bl, 0x10
je 0x4981a7
mov edx, dword [edi + 0x24]
lea ecx, [edi + 0x1c]
xor eax, eax
test edx, edx
jle 0x49819e
mov esi, dword [ecx + 4]
cmp dword [esi], ebp
je 0x4981a1
inc eax
add esi, 4
cmp eax, edx
jl 0x498192
or eax, 0xffffffff
push eax
call fcn.0049c210
test bl, 0x20
je 0x4981d6
mov edx, dword [edi + 0x94]
lea ecx, [edi + 0x8c]
xor eax, eax
test edx, edx
jle 0x4981cd
mov esi, dword [ecx + 4]
cmp dword [esi], ebp
je 0x4981d0
inc eax
add esi, 4
cmp eax, edx
jl 0x4981c1
or eax, 0xffffffff
push eax
call fcn.0049c210
mov edx, dword [edi + 0x5c]
xor eax, eax
test edx, edx
jle 0x4981f9
mov ecx, dword [edi + 0x58]
cmp dword [ecx], ebp
je 0x4981f0
inc eax
add ecx, 4
cmp eax, edx
jl 0x4981e2
jmp 0x4981f9
cmp eax, 0xffffffff
jne 0x4982ae
mov edx, dword [edi + 0x78]
xor eax, eax
test edx, edx
jle 0x49821c
mov ecx, dword [edi + 0x74]
cmp dword [ecx], ebp
je 0x498213
inc eax
add ecx, 4
cmp eax, edx
jl 0x498205
jmp 0x49821c
cmp eax, 0xffffffff
jne 0x4982ae
mov edx, dword [edi + 8]
xor eax, eax
test edx, edx
jle 0x49823b
mov ecx, dword [edi + 4]
cmp dword [ecx], ebp
je 0x498236
inc eax
add ecx, 4
cmp eax, edx
jl 0x498228
jmp 0x49823b
cmp eax, 0xffffffff
jne 0x4982ae
mov edx, dword [edi + 0x40]
xor eax, eax
test edx, edx
jle 0x49825a
mov ecx, dword [edi + 0x3c]
cmp dword [ecx], ebp
je 0x498255
inc eax
add ecx, 4
cmp eax, edx
jl 0x498247
jmp 0x49825a
cmp eax, 0xffffffff
jne 0x4982ae
mov edx, dword [edi + 0x24]
xor eax, eax
test edx, edx
jle 0x498279
mov ecx, dword [edi + 0x20]
cmp dword [ecx], ebp
je 0x498274
inc eax
add ecx, 4
cmp eax, edx
jl 0x498266
jmp 0x498279
cmp eax, 0xffffffff
jne 0x4982ae
mov edx, dword [edi + 0x94]
xor eax, eax
test edx, edx
jle 0x49829e
mov ecx, dword [edi + 0x90]
cmp dword [ecx], ebp
je 0x498299
inc eax
add ecx, 4
cmp eax, edx
jl 0x49828b
jmp 0x49829e
cmp eax, 0xffffffff
jne 0x4982ae
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [edi + 0xa8]
call fcn.0049c210
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jns 0x498084
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 8