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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov dword [esp + 0x10], esi
mov edi, dword [esi]
movzx eax, byte [esi + 0x92]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], eax
test dword [edi + 0x18], 0x4000
je 0x497b65
mov ecx, dword [edx + 0x48]
mov ebx, 0xfff0bdc0
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x49755b
mov edx, dword [edi + 0x14]
xor ebx, ebx
mov dword [esp + 0x18], ebx
test edx, edx
jle 0x497557
mov eax, dword [edi + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x497553
inc ebx
add eax, 0x10
cmp ebx, edx
jl 0x497547
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, ebx
mov ebx, dword [edx + 0x10]
add ecx, ecx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax + ecx*8]
mov dword [esp + 0x28], ecx
test ebx, ebx
je 0x49792e
nop dword [eax + eax]
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
je 0x497603
mov ecx, dword [edx]
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x4975ad
neg eax
sbb eax, eax
jmp 0x4975b8
test eax, eax
je 0x4975bc
mov edx, eax
call fcn.004517f0
test eax, eax
je 0x4975ff
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x497913
lea ecx, [ebx + 0x24]
nop word [eax + eax]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 0
jge 0x4975fb
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x4975ed
cmp dword [ebp + 0x14], 0
jne 0x4975fb
inc esi
add ecx, 8
cmp esi, dword [ebx + 0x14]
jl 0x4975d0
jmp 0x497913
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp byte [esi + 0x92], 0
push ecx
je 0x49761c
mov edx, dword [ebx + 8]
mov ecx, edi
call fcn.0048b2a0
add esp, 4
jmp 0x49762b
push dword [ebx + 8]
xor edx, edx
mov ecx, esi
call fcn.0048b3f0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4977eb
lea ecx, [esp + 0x30]
mov edx, eax
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebx
mov ecx, esi
call fcn.00496090
add esp, 0xc
test eax, eax
jne 0x4977e7
mov eax, dword [esp + 0x30]
test eax, eax
je 0x497666
mov ecx, eax
mov dword [esp + 0x20], eax
jmp 0x497675
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x4976e9
nop dword [eax]
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp dword [ecx + esi*4], eax
jne 0x497694
mov dword [ecx + esi*4], 0xffffffff
cmp dword [edi + 0x128], 0
je 0x4976e3
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4976b2
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x4976b6
movzx eax, word [edx + 0x28]
push dword [esp + 0x18]
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
mov edx, dword [edx]
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
call fcn.0048aae0
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x497680
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push dword [esi]
push 0
push dword [esi + 0x1c]
call fcn.0048ad30
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
inc dword [ecx + 0x28]
test eax, eax
je 0x497733
push dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x38]
push esi
call fcn.00496350
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x497789
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1cc]
test eax, eax
je 0x497764
mov eax, dword [eax]
cmp eax, dword [ebx + 0x1c]
jne 0x497759
cmp byte [ebx + 0x19], 7
je 0x497789
cmp eax, dword [ebx + 0x20]
jne 0x497764
cmp byte [ebx + 0x1a], 7
je 0x497789
push dword [esp + 0x2c]
push 1
push edx
push dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebx
push dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00496350
add esp, 0x1c
jmp 0x49778d
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x497917
cmp dword [edi + 0x1c8], 0
je 0x4977b0
mov edx, ecx
mov ecx, edi
call fcn.0044e6e0
jmp 0x497917
cmp ecx, dword [edi + 0x120]
jb 0x4977d9
cmp ecx, dword [edi + 0x124]
jae 0x4977d9
mov eax, dword [edi + 0x11c]
mov dword [ecx], eax
dec dword [edi + 0x108]
mov dword [edi + 0x11c], ecx
jmp 0x497917
push ecx
call fcn.0044e670
add esp, 4
jmp 0x497917
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x34], 0
je 0x497b65
cmp byte [edi + 0x45], 0
jne 0x497b65
test eax, eax
jne 0x497917
mov esi, dword [esi + 8]
test esi, esi
jne 0x49781a
mov ecx, dword [esp + 0x10]
call fcn.004a43b0
mov esi, eax
mov eax, dword [esi + 0x88]
mov edx, dword [ebx + 0x14]
inc eax
add eax, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
test edx, edx
jle 0x4978b9
lea edi, [ebx + 0x24]
nop dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
inc ecx
mov edx, dword [edi]
add edx, ecx
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49786e
push 0
push dword [esp + 0x34]
mov ecx, esi
push edx
mov edx, 0x4b
call fcn.0046bae0
add esp, 0xc
jmp 0x4978a4
mov ebx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x2c]
add edi, 8
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, dword [ebx + 0x14]
jl 0x497840
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
movzx edx, byte [ebx + 0x18]
cmp dword [eax + 0x30], ecx
jg 0x4978e1
push 0
push 0xffffffffffffffff
push edx
mov edx, 0x91
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
jmp 0x497913
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x10]
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x497580
mov ebx, dword [esp + 0x14]
push 0
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx]
add ecx, 0x38
call fcn.00452e90
add esp, 4
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x497b65
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x497982
push dword [ebp + 0x14]
mov edx, esi
mov ecx, ebx
push eax
call fcn.004973f0
add esp, 8
test eax, eax
je 0x497b56
cmp byte [esi + 0x18], 0
jne 0x4979a5
test dword [edi + 0x18], 0x40000
jne 0x4979a5
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x78], 0
jne 0x4979a5
cmp byte [edx + 0x14], 0
je 0x497b56
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
mov edx, ebx
push eax
push esi
call fcn.00496090
add esp, 0xc
test eax, eax
je 0x4979dc
cmp dword [esp + 0x34], 0
je 0x497b65
cmp byte [edi + 0x45], 0
jne 0x497b65
jmp 0x497b56
push 0
push 0x58
mov ecx, edi
call fcn.0044ea10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x497b07
push 0x50
lea eax, [ebx + 8]
mov dword [ebx + 4], 1
push 0
push eax
mov dword [ebx], 1
call fcn.004e7b30
add esp, 0xc
mov dword [ebx + 0x38], 0xffffffff
cmp byte [edi + 0x45], 0
mov ecx, edi
jne 0x497b00
mov eax, dword [ebx]
xor edx, edx
lea esi, [eax + eax*4]
add esi, esi
call fcn.0048bcf0
mov ecx, dword [esp + 0x1c]
mov dword [ebx + esi*8 - 0x40], eax
mov dword [ebx + esi*8 - 0x44], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x18]
inc dword [eax + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x10]
inc dword [eax + 0x28]
test esi, esi
je 0x497a94
push 0xffffffffffffffff
push esi
mov esi, dword [esp + 0x30]
push esi
push ecx
push edx
push dword [esp + 0x28]
mov edx, ebx
mov ecx, eax
call fcn.00496d60
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov edx, dword [esp + 0x30]
jmp 0x497a98
mov esi, dword [esp + 0x28]
cmp dword [ebp + 8], 0
je 0x497af3
push 1
push dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], eax
push esi
mov esi, dword [esp + 0x28]
setne al
push esi
push edx
push dword [esp + 0x28]
movzx eax, byte [eax + ecx + 0x19]
mov edx, ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.00496d60
add esp, 0x18
cmp byte [esi + 0x18], 0
jne 0x497af7
mov eax, dword [esp + 0x3c]
cmp eax, 9
je 0x497af7
cmp eax, 7
je 0x497af7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x497af7
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x10], 0
mov ecx, edi
mov edx, ebx
call fcn.00490020
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x497b52
cmp dword [edi + 0x1c8], 0
je 0x497b23
mov edx, ecx
mov ecx, edi
call fcn.0044e6e0
jmp 0x497b52
cmp ecx, dword [edi + 0x120]
jb 0x497b49
cmp ecx, dword [edi + 0x124]
jae 0x497b49
mov eax, dword [edi + 0x11c]
mov dword [ecx], eax
dec dword [edi + 0x108]
mov dword [edi + 0x11c], ecx
jmp 0x497b52
push ecx
call fcn.0044e670
add esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x497953
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret