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

Disassembly:
sub esp, 0x128
mov eax, dword [0x45f1bf0]
mov ecx, dword [0x4e1100]
push ebx
push ebp
push esi
cmp eax, ecx
mov eax, dword [0x4a1308]
push edi
mov dword [esp + 0x20], 0
je 0x406edf
cmp eax, 6
jne 0x406f74
test byte [0x45f1bc4], 1
jne 0x406eed
cmp eax, 6
jne 0x406f4f
mov esi, dword [0x4d8028]
call fcn.00405320
test esi, esi
jne 0x406f4f
push 0xffffffffffffffff
push esi
push 0x140
mov ecx, 7
mov eax, 0xfffffffe
mov edi, 0x4e211c
push 0x100
push 0x84
rep stosd dword es:[edi], eax
push 0x178
mov dword [0x4d8028], 1
call fcn.00448610
add esp, 0x18
mov dword [0x4e2200], eax
mov dword [0x4a1304], 6
mov dword [0x4a1308], 0xffffffff
mov edi, 0x4a143c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x45f1a90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x4d8028], 1
jne 0x407492
mov eax, dword [0x4e2200]
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x407492
mov eax, dword [eax + 0xc]
mov ecx, dword [0x54b1b0]
push 1
push ecx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
push 0x68
push edx
push eax
call fcn.0047e210
mov al, byte [0x45f1bc4]
add esp, 0x14
test al, 1
je 0x407160
xor edi, edi
mov ebp, 0x4627460
mov ebx, 0x4e211c
mov esi, 0x462bf34
cmp word [ebp + 0x6e], 1
jne 0x4070ab
cmp word [esi], 1
jne 0x4070ab
mov ecx, dword [0x45f1b90]
mov eax, dword [ebx]
cmp ecx, eax
jne 0x4070ab
cmp dword [ebp], 0
jle 0x407094
movsx edx, word [0x462bf32]
cmp edi, edx
je 0x407094
push edi
lea eax, [esp + 0x3c]
push str.S_d
push eax
call fcn.004923a7
mov eax, dword [0x461b658]
add esp, 0xc
test eax, eax
je 0x40703a
mov edx, dword [0x461b404]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0048f1e0
jmp 0x40704b
mov ecx, dword [0x461b404]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.0043ad20
add esp, 8
push 0xf0
push 0x140
push 0xcb
call fcn.00488190
mov edx, dword [0x4e2200]
push edx
call fcn.004011c0
add esp, 0x10
or eax, 0xffffffff
mov dword [0x4e2200], 0
mov dword [0x4e21e8], 1
mov dword [0x4a1304], eax
mov dword [0x4a1308], eax
jmp 0x4070ab
push 0xf0
push 0x140
push 0xdc
call fcn.00488190
add esp, 0xc
add esi, 2
inc edi
add ebx, 4
add ebp, 0xb18
cmp esi, 0x462bf3e
jl 0x406fcd
mov eax, dword [0x45f1bf0]
mov ecx, dword [0x4e2130]
cmp eax, ecx
jne 0x40714c
or esi, 0xffffffff
cmp word [0x462bf32], si
je 0x40714c
mov eax, dword [0x461b658]
push str.S_1
test eax, eax
je 0x4070fb
mov ecx, dword [0x461b404]
push ecx
call fcn.0048f1e0
jmp 0x407107
mov edx, dword [0x461b404]
push edx
call fcn.0043ad20
add esp, 8
push 0xf0
push 0x140
push 0xcb
call fcn.00488190
mov eax, dword [0x4e2200]
push eax
call fcn.004011c0
add esp, 0x10
mov dword [0x4e2200], 0
mov dword [0x4e21e8], 1
mov dword [0x4a1304], esi
mov dword [0x4a1308], esi
mov ecx, dword [0x45f1bf0]
mov eax, dword [0x4e2134]
cmp ecx, eax
jne 0x407160
call fcn.00405320
mov eax, dword [0x4e2200]
test eax, eax
je 0x407492
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
add ecx, 0x11
add edi, 0x21
mov eax, 0x462bf34
mov dword [esp + 0x14], ecx
lea edx, [edi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 0x4e211c
mov esi, 0x46274bd
mov dword [esp + 0x24], eax
mov ebx, 1
cmp word [esi + 0x11], bx
jne 0x407378
cmp word [eax], bx
jne 0x407378
mov eax, dword [esi - 0x5d]
xor ebp, ebp
test eax, eax
jg 0x4071c8
mov ebx, 6
movsx eax, word [0x462bf32]
cmp dword [esp + 0x1c], eax
jne 0x4071da
mov ebx, 4
mov al, byte [esi]
push 0x10
test al, al
je 0x4071ea
lea ecx, [esp + 0x3c]
push ecx
push esi
jmp 0x4071f3
lea edx, [esp + 0x3c]
lea eax, [esi - 0x11]
push edx
push eax
call fcn.0044a940
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x38]
push 2
push ecx
push ebx
push 1
push edi
push edx
call fcn.0041d860
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov dword [ecx], eax
mov eax, dword [esi - 0x31]
test eax, eax
jle 0x40723b
xor edx, edx
cmp eax, 0x32
setle dl
dec edx
mov ebp, 1
and edx, 0xfffffffe
add edx, 0x6222
mov dword [esp + 0x28], edx
mov eax, dword [esi - 0x2d]
test eax, eax
jle 0x40725a
cmp eax, 0x32
jle 0x407251
mov dword [esp + ebp*4 + 0x28], 0x6223
jmp 0x407259
mov dword [esp + ebp*4 + 0x28], 0x6225
inc ebp
mov eax, dword [esi - 0x29]
test eax, eax
jle 0x407279
cmp eax, 0x32
jle 0x407270
mov dword [esp + ebp*4 + 0x28], 0x6226
jmp 0x407278
mov dword [esp + ebp*4 + 0x28], 0x6228
inc ebp
mov eax, dword [esi - 0x25]
test eax, eax
jle 0x407298
cmp eax, 0x32
jle 0x40728f
mov dword [esp + ebp*4 + 0x28], 0x6229
jmp 0x407297
mov dword [esp + ebp*4 + 0x28], 0x622b
inc ebp
test ebp, ebp
jle 0x4072c1
mov eax, dword [esp + 0x28]
mov edx, dword [0x4e2200]
mov ecx, dword [esp + 0x10]
push 0
push eax
mov eax, dword [edx + 0x18]
push 0x69
add eax, 0xd6
push ecx
push eax
call fcn.0047e210
add esp, 0x14
cmp ebp, 1
jle 0x4072ed
mov edx, dword [0x4e2200]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
push 0
mov eax, dword [edx + 0x18]
push ecx
push 0x69
add eax, 0xe6
push ebp
push eax
call fcn.0047e210
add esp, 0x14
jmp 0x4072f1
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi - 0x59]
mov edx, dword [esi - 0x5d]
mov eax, dword [esi - 0x45]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
push str._3d___________4d____4d
push ecx
add edi, 0x1a
add ebp, 0x1a
call fcn.004923a7
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x4c]
push 0
push edx
push ebx
push 1
add eax, 0x1b
push edi
push eax
call fcn.0041d860
mov ecx, dword [esi - 0x35]
lea edx, [esp + 0x64]
push ecx
push 0x4a1410
push edx
add edi, 0x19
add ebp, 0x19
call fcn.004923a7
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x70]
push 0
push eax
push ebx
push 1
add ecx, 0x3c
push edi
push ecx
call fcn.0041d860
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
add esp, 0x50
add edi, 0x24
add ebp, 0x24
mov dword [esp + 0x20], 1
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
add eax, 2
inc ebx
add ebp, 4
add esi, 0xb18
cmp eax, 0x462bf3e
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
jl 0x4071a2
cmp dword [esp + 0x20], 1
jne 0x407451
cmp word [0x462bf32], 0xffff
push 2
je 0x40741c
mov eax, dword [0x4e2200]
push 0x65b9
push 0x69
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add edx, 0x12b
add eax, 0x46
push edx
push eax
call fcn.0047e210
mov dword [0x4e2130], eax
mov eax, dword [0x4e2200]
push 2
push 0x65ba
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
add ecx, 0x12b
push 0x69
add edx, 0xbb
push ecx
push edx
call fcn.0047e210
add esp, 0x28
mov dword [0x4e2134], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov eax, dword [0x4e2200]
push 0x65ba
push 0x69
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0xc]
add ecx, 0x12b
mov eax, dword [edx + 0x14]
push ecx
push eax
call fcn.0047e210
add esp, 0x14
mov dword [0x4e2134], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push 0
push 0x4a1400
push 0
push 1
add ecx, 0xb
push edi
push ecx
call fcn.0041d860
mov eax, dword [0x4e2200]
push 2
push 0x65ba
push 0x69
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0xc]
add ecx, 0x12b
mov eax, dword [edx + 0x14]
push ecx
push eax
call fcn.0047e210
add esp, 0x2c
mov dword [0x4e2134], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret