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

Disassembly:
push 0xffffffffffffffff
push 0x4bc3e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [0x51eea4]
xor eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
lea esi, [ecx + 8]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 4]
push edi
push ecx
mov ecx, esi
call fcn.0040e910
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
push 0x16c
mov dword [eax + 8], eax
call fcn.004ad909
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov dword [esp + 0x88], ebx
je 0x412ef9
mov eax, str.data_language
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412ec0
sub eax, edx
push eax
push str.data_language
lea ecx, [esp + 0x30]
call fcn.00402cd0
lea edx, [esp + 0x28]
mov ebx, 1
push edx
mov ecx, edi
mov byte [esp + 0x8c], 1
mov dword [esp + 0x14], ebx
call fcn.0040c720
mov ebp, eax
jmp 0x412efb
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x412f06
inc dword [ebp + 4]
test bl, 1
mov dword [esp + 0x88], 4
je 0x412f3f
cmp dword [esp + 0x40], 0x10
jb 0x412f2a
mov eax, dword [esp + 0x2c]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xc]
test al, al
je 0x413093
mov bl, 6
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
test eax, eax
jne 0x413083
mov edx, dword [ebp]
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call dword [edx + 0x18]
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x8c], 5
call fcn.0040ed20
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x413052
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00412100
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.00410700
add esp, 8
mov edi, eax
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x8c], bl
call fcn.00408c00
mov ecx, eax
call fcn.004014f0
mov eax, dword [eax]
push 0x51ff63
push edi
push str.Found_resources_for_language:
push 0x51ff70
mov ecx, eax
mov byte [esp + 0x98], 7
call fcn.00401560
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403370
mov ecx, eax
call fcn.00403f50
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x88], bl
je 0x413029
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x10], eax
jne 0x413029
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x78], 0x10
jb 0x41303d
mov eax, dword [esp + 0x64]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x88], 4
jb 0x41306e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
test al, al
jne 0x412f51
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 4]
test ecx, ecx
setne bl
dec eax
mov dword [esp + 0x88], 0xffffffff
mov dword [ebp + 4], eax
jne 0x4130bc
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [esp + 0x80]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x74]
xor ecx, dword [esp + 0x84]
pop ebp
mov al, bl
pop ebx
add esp, 0x7c
jmp fcn.004ae650