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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0xc], 0
test edi, edi
mov dword [eax], 0
je 0x412a73
test ecx, ecx
je 0x412a73
test ebp, ebp
je 0x412a73
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x4124b1
mov byte [ecx], bl
pop edi
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
cmp ebp, 1
je 0x412a61
mov edx, dword [esp + 0x80]
test edx, edx
je 0x412a61
push esi
mov esi, dword [esp + 0x70]
mov eax, dword [esi + 0x2508]
test dword [eax + 0x1c], 0x40000
je 0x4126ea
xor ebx, ebx
mov edi, dword [esp + 0x7c]
mov ecx, ebp
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
lea edx, [esp + 0x18]
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x250c]
mov ecx, dword [esi + 0x2508]
push eax
mov eax, dword [esp + 0x84]
push ecx
push edx
push ebp
push eax
call sub.oranls9.dll_lxmopen
mov ecx, dword [esi + 0x250c]
mov edx, dword [esi + 0x2508]
push ecx
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x94]
push eax
push ecx
push edx
call sub.oranls9.dll_lxmcpen
mov eax, dword [esi + 0x1878]
add esp, 0x2c
test eax, eax
mov eax, dword [esi + 0x250c]
push eax
je 0x41255f
push 0x10000080
jmp 0x412564
push 0x10000000
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x80]
sub ecx, ebx
lea eax, [esp + 0x48]
push ecx
mov ecx, ebp
sub ecx, ebx
push edx
dec ecx
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call sub.oranls9.dll_lxoCpDisp
mov edi, eax
mov eax, dword [esp + 0x3c]
add esp, 0x1c
test dword [eax + 0x1c], 0x4000000
mov ecx, dword [esp + 0x18]
je 0x4125c0
mov edx, dword [esp + 0x28]
test ecx, ecx
je 0x4125b7
test edx, edx
je 0x4125b7
mov eax, 1
add eax, 2
jmp 0x4125d6
xor eax, eax
mov eax, 2
jmp 0x4125d6
mov edx, dword [esp + 0x28]
test ecx, ecx
je 0x4125d3
test edx, edx
je 0x4125d3
mov eax, 1
jmp 0x4125d5
xor eax, eax
inc eax
cmp eax, 1
je 0x4125e5
inc ebx
cmp ebx, 2
jb 0x4124e3
test ecx, ecx
je 0x41261e
test edx, edx
je 0x41261e
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
mov dl, byte [ecx + 0x45]
mov byte [eax], dl
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, 2
jmp 0x412649
mov ecx, dword [esp + 0x20]
test dword [ecx + 0x1c], 0x4000000
je 0x412634
mov edx, dword [esp + 0x1c]
mov byte [edx], 0
jmp 0x412602
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, 1
mov ecx, dword [esi + 0x250c]
mov edx, dword [esi + 0x2508]
add edi, eax
mov eax, dword [esi + 0x1878]
test eax, eax
push ecx
push edx
je 0x41266a
push 0x10000080
jmp 0x41266f
push 0x10000000
mov eax, dword [esp + 0x88]
push edi
push eax
call sub.oranls9.dll_lxsCntDisp
mov ebx, eax
mov eax, dword [esi + 0x1878]
add esp, 0x14
test eax, eax
je 0x4126ab
mov ecx, dword [esi + 0x250c]
mov edx, dword [esi + 0x2508]
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push 0x10000080
push eax
push ecx
jmp 0x4126c8
mov edx, dword [esi + 0x250c]
mov eax, dword [esi + 0x2508]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
push 0x10000000
push ecx
push edx
call sub.oranls9.dll_lxsCntDisp
mov edx, dword [esp + 0x9c]
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov eax, edi
pop esi
setg cl
pop edi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x5c
ret
mov edx, dword [esi + 0x250c]
push 1
push edx
push eax
lea eax, [esp + 0x20]
push eax
push ebp
push ecx
call sub.oranls9.dll_lxmopen
mov ecx, dword [esi + 0x250c]
mov edx, dword [esi + 0x2508]
mov dword [esp + 0x94], eax
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push ebx
push edi
call sub.oranls9.dll_lxmcpen
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x6c]
add esp, 0x2c
test eax, eax
jne 0x412782
test dword [ecx + 0x1c], 0x4000000
jne 0x412789
mov eax, dword [esp + 0x44]
test eax, eax
je 0x412759
mov edi, dword [esp + 0x54]
xor eax, eax
test edi, edi
sete al
jmp 0x41277e
mov edi, dword [esi + 0x250c]
xor eax, eax
mov ax, word [ecx + 0x20]
xor ebx, ebx
mov edi, dword [edi + 0xc]
mov bl, byte [edx]
mov eax, dword [edi + eax*4]
mov edi, dword [ecx]
lea eax, [eax + ebx*2]
mov al, byte [eax + edi]
and al, 3
neg al
sbb eax, eax
inc eax
test eax, eax
je 0x412789
mov ebp, 1
jmp 0x4127a7
mov ecx, dword [esi + 0x250c]
lea edx, [esp + 0x40]
push ecx
push edx
call sub.oranls9.dll_lxmdspx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4127b6
mov edi, 1
jmp 0x4127f1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4127cd
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4127af
xor eax, eax
mov al, byte [ecx + 0x44]
jmp 0x4127ef
mov edi, dword [esi + 0x250c]
xor eax, eax
mov ax, word [ecx + 0x20]
xor ebx, ebx
mov edi, dword [edi + 0xc]
mov bl, byte [edx]
mov eax, dword [edi + eax*4]
mov edi, dword [ecx]
lea eax, [eax + ebx*2]
mov al, byte [eax + edi]
and eax, 3
inc eax
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412800
mov eax, 1
jmp 0x412821
mov ecx, dword [esi + 0x250c]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.oranls9.dll_lxmcpbx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add esp, 0xc
test dword [ecx + 0x1c], 0x4000000
je 0x41283c
mov cl, byte [edx + 1]
test cl, cl
jne 0x412845
cmp byte [edx], 0
je 0x41298e
jmp 0x412845
cmp byte [edx], 0
je 0x41298e
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + ebp]
mov ecx, dword [esp + 0x84]
cmp ebx, ecx
ja 0x41298e
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
lea ebp, [edi + edx]
cmp ebp, ecx
ja 0x41298e
mov ecx, dword [esp + 0x7c]
lea edi, [eax + ecx]
mov eax, dword [esp + 0x80]
cmp edi, eax
jae 0x41298e
mov edx, dword [esi + 0x250c]
lea eax, [esp + 0x40]
push edx
push 0x40800000
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
push ecx
call sub.oranls9.dll_lxoCpChar
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
add esp, 0x18
test eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], edi
jne 0x412909
test dword [ecx + 0x1c], 0x4000000
jne 0x412910
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4128e0
mov edi, dword [esp + 0x54]
xor eax, eax
test edi, edi
sete al
jmp 0x412905
mov edi, dword [esi + 0x250c]
xor eax, eax
mov ax, word [ecx + 0x20]
xor ebx, ebx
mov edi, dword [edi + 0xc]
mov bl, byte [edx]
mov eax, dword [edi + eax*4]
mov edi, dword [ecx]
lea eax, [eax + ebx*2]
mov al, byte [eax + edi]
and al, 3
neg al
sbb eax, eax
inc eax
test eax, eax
je 0x412910
mov ebp, 1
jmp 0x41292e
mov ecx, dword [esi + 0x250c]
lea edx, [esp + 0x40]
push ecx
push edx
call sub.oranls9.dll_lxmdspx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41293d
mov edi, 1
jmp 0x412978
mov eax, dword [esp + 0x44]
test eax, eax
je 0x412954
mov eax, dword [esp + 0x54]
test eax, eax
je 0x412936
xor eax, eax
mov al, byte [ecx + 0x44]
jmp 0x412976
mov edi, dword [esi + 0x250c]
xor eax, eax
mov ax, word [ecx + 0x20]
xor ebx, ebx
mov edi, dword [edi + 0xc]
mov bl, byte [edx]
mov eax, dword [edi + eax*4]
mov edi, dword [ecx]
lea eax, [eax + ebx*2]
mov al, byte [eax + edi]
and eax, 3
inc eax
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412800
mov eax, 1
jmp 0x412821
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4129cf
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4129cf
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
mov dl, byte [ecx + 0x45]
mov byte [eax], dl
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, 2
jmp 0x4129fa
mov ecx, dword [esp + 0x20]
test dword [ecx + 0x1c], 0x4000000
je 0x4129e5
mov edx, dword [esp + 0x1c]
mov byte [edx], 0
jmp 0x4129b3
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, 1
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x4c]
add edi, eax
test dword [ecx + 0x1c], 0x4000000
je 0x412a1f
mov eax, dword [esp + 0x48]
mov cl, byte [eax + 1]
test cl, cl
jne 0x412a28
cmp byte [eax], 0
je 0x412a4c
jmp 0x412a28
mov edx, dword [esp + 0x48]
cmp byte [edx], 0
je 0x412a4c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
cmp ecx, eax
jbe 0x412a4c
mov ecx, dword [esp + 0x88]
mov eax, 1
pop esi
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x88]
xor eax, eax
pop esi
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x5c
ret
mov byte [ecx], 0
pop edi
mov dword [eax], 1
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x6c]
push ebp
push ecx
push edi
push 3
push 1
push 0x8ed
push edx
call fcn.004157b0
add esp, 0x1c
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x5c
ret