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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x7a14bc]
mov edx, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [0x7a14b4]
push esi
mov esi, dword [0x7a146c]
push edi
mov ecx, dword [eax + ebp*4]
sub ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov edi, dword [0x7a1488]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x7a1448]
mov eax, dword [eax + 0x47f4]
xor eax, 0x18fd
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
movzx eax, word [ebx + edi*4]
add eax, 0x1458
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], eax
inc edi
mov dword [0x7a1488], edi
mov ecx, dword [ecx + esi*4 + 0x8c]
movzx eax, byte [edi + edx]
and ecx, eax
movzx eax, byte [edx + 0xd85]
xor eax, dword [0x7a1470]
mov edx, dword [0x7a1454]
mov dword [esp + 0x44], eax
mov eax, dword [0x7a148c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], edx
movzx ecx, word [eax + edx*2]
mov eax, dword [0x7a1464]
imul ecx, dword [eax + 0x1b80]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x7a14b0]
mov eax, dword [ecx + edx*8]
xor edx, edx
sub eax, 0xf60
inc edi
mov dword [esp + 0x24], eax
mov eax, dword [0x7a144c]
mov dword [0x7a1488], edi
mov al, byte [eax + edi*4]
mov byte [esp + 0x54], al
mov eax, dword [0x7a1478]
mov eax, dword [ecx + eax*4 + 0x68]
mov ecx, dword [esp + 0x58]
add eax, 0x119f
mov dword [esp + 0x2c], eax
movzx eax, word [ebx + esi*2]
mov ebx, dword [esp + 0x78]
div dword [ecx + 0x3308]
mov eax, dword [0x7a14ac]
inc esi
mov dword [0x7a146c], esi
mov ecx, dword [ebx]
mov esi, dword [0x7a14a4]
mov dword [esp + 0x40], eax
xor esi, 0x307
mov eax, dword [esp + 0x64]
dec dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], esi
movzx eax, byte [eax + ecx*4]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], eax
mov eax, dword [ebx - 4]
sub ebx, 8
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
cmp dword [ecx + edi*4], edx
mov edi, dword [esp + 0x14]
je 0x4053d6
mov ebp, dword [esp + 0x74]
mov al, byte [esp + 0x54]
movzx eax, al
xor ax, word [ebp + edx*2]
mov ebp, dword [esp + 0x68]
and word [ebp + edx*2], ax
mov eax, dword [ecx]
mov ecx, edx
mov edx, dword [esp + 0x2c]
add ecx, ecx
mov edx, dword [edx + eax*8]
mov eax, dword [0x7a144c]
xor edx, dword [eax + ecx*8]
and edx, dword [esp + 0x50]
mov dword [esi + edi*8], edx
inc dword [ebx]
mov eax, dword [0x7a14b4]
cdq
idiv dword [0x7a1498]
mov ecx, dword [0x7a144c]
cdq
idiv dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov esi, dword [ebx]
add al, byte [ecx + edx*8]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
xor byte [ecx + esi*4], al
mov eax, dword [0x7a1488]
mov esi, dword [esp + 0x30]
mov eax, dword [edx + eax*4]
cdq
idiv dword [0x7a148c]
dec dword [0x7a1454]
mov dword [0x7a148c], eax
dec dword [ebx]
mov eax, dword [0x7a1454]
movzx ecx, byte [0x7a145f]
mov edx, dword [ebx]
xor cx, word [esi + eax*4]
mov eax, dword [esp + 0x7c]
xor cx, di
sub cx, word [0x7a14ac]
mov esi, dword [esp + 0x24]
add word [eax + edx*8], cx
mov edx, dword [0x7a146c]
mov eax, dword [esp + 0x5c]
movzx eax, al
movzx ecx, byte [esi + edx*4]
imul ecx, eax
mov byte [esi + edx*4], cl
mov eax, dword [0x7a1448]
mov ebp, dword [0x7a14b4]
mov esi, dword [0x7a1454]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x4053da
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + edx*8]
mov eax, dword [0x7a1478]
dec dword [0x7a1478]
cmp ecx, eax
ja 0x405412
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
movzx ecx, word [eax + esi*2]
inc esi
mov eax, dword [ebx]
mov edx, dword [edx + eax*4]
mov eax, ecx
mov dword [0x7a1454], esi
cmp eax, edx
jge 0x40542c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
inc ebp
mov ecx, dword [esp + 0x7c]
mov dword [0x7a14b4], ebp
mov ax, word [eax + esi*2]
cmp ax, word [ecx + ebp*4 + 0x46]
je 0x40548b
mov ecx, dword [ebx]
mov eax, dword [0x7a1450]
movzx edx, word [0x7a1468]
or edx, 0x3a2
mov dword [eax + ecx*4], edx
mov ecx, dword [0x7a1454]
mov eax, dword [esp + 0x10]
inc eax
mov esi, dword [ebx]
or eax, dword [ebx + ecx*4]
cdq
idiv dword [0x7a1498]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
sub dl, byte [ecx + eax*8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
xor byte [esi + eax], dl
mov eax, dword [ebx]
movzx eax, word [ecx + eax*4 + 2]
cdq
idiv dword [0x7a1454]
mov dword [0x7a1454], edx
jmp 0x40567b
movzx ecx, word [0x7a1468]
mov eax, edi
inc edi
cmp ecx, eax
jbe 0x4054b2
mov eax, dword [0x7a14b8]
dec ebp
mov ecx, dword [esp + 0x1c]
mov dword [0x7a14b4], ebp
movzx eax, word [eax + ebp*2]
cmp eax, dword [ecx + ebp*4]
jne 0x4054ce
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x78]
mov eax, dword [eax]
movzx eax, byte [ecx + eax*4]
mov ecx, dword [esp + 0x74]
cmp word [ecx + edx*2], ax
jbe 0x4055c0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
mov eax, dword [eax]
movzx eax, word [ecx + eax*2 + 8]
mov ecx, dword [esp + 0x28]
xor eax, 0x77b
mov dword [ecx + edi*4], eax
inc edi
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x14], edi
movzx edi, word [0x7a1494]
imul eax, edi, 3
movzx esi, byte [eax + ecx]
mov ecx, dword [ebx]
mov eax, dword [0x7a1490]
mov eax, dword [eax + ecx*4]
mov ecx, 0x17c3
cdq
idiv ecx
mov eax, edx
cdq
idiv esi
mov eax, dword [esp + 0x24]
add byte [edi + eax], dl
movzx eax, word [0x7a1494]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov esi, dword [0x7a14b4]
mov eax, dword [edx + eax*4 + 0x1c]
mov edx, dword [esp + 0x70]
sub eax, dword [edx + ecx*8]
xor edx, edx
mov ecx, dword [esp + 0x20]
movzx ecx, word [ecx + edi*2]
div ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
sub eax, dword [ecx + esi*4]
mov dword [ecx + esi*4], eax
dec dword [ebp]
mov esi, dword [esp + 0x1c]
mov ecx, dword [0x7a149c]
mov eax, dword [ebp]
or ecx, 0x347
xor ecx, dword [esi + edx*4]
mov esi, dword [esp + 0x74]
movzx eax, word [esi + eax*2]
mov esi, dword [esp + 0x44]
or ecx, eax
mov eax, dword [0x7a1454]
mov dword [esi + eax*4], ecx
mov esi, dword [0x7a1454]
mov ecx, dword [esp + 0x30]
dec esi
mov dword [0x7a1454], esi
mov eax, dword [ebx]
movzx ecx, word [ecx + eax*2]
movzx eax, word [0x7a1494]
add ecx, eax
mov eax, dword [esp + 0x64]
or ecx, dword [eax + edx*4 + 0x10]
xor dword [0x7a14ac], ecx
sub ebx, 4
jmp 0x4055c4
mov ebp, dword [esp + 0x18]
mov eax, dword [0x7a14a0]
sub eax, dword [0x7a1474]
mov ecx, dword [esp + 0x1c]
mov dword [0x7a1474], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + edx*4 + 0xc]
xor edx, edx
add dword [ecx + esi*4], eax
mov eax, dword [0x7a1454]
mov ecx, dword [esp + 0x7c]
movzx eax, word [ecx + eax*2]
movzx ecx, word [0x7a145c]
div ecx
mov word [0x7a145c], dx
dec dword [ebx]
mov eax, dword [ebx]
mov edx, dword [esp + 0x48]
movzx ecx, word [0x7a145c]
xor ecx, dword [edx + eax*4]
mov eax, dword [0x7a1478]
mov dword [0x7a148c], ecx
mov edx, dword [ebx]
mov ecx, dword [esp + 0x34]
lea esi, [ecx + edx*2]
mov ecx, dword [esp + 0x1c]
add edx, edx
mov cx, word [ecx + eax*4]
add cx, word [ebp + edx*8]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + edi]
add cx, ax
xor word [esi], cx
dec dword [0x7a1478]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [edx + ecx - 1]
and eax, ecx
mov ecx, 0x1f28
cdq
idiv ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov eax, dword [0x7a14a8]
mov dword [eax + ecx*4], edx
pop edi
pop esi
pop ebp
mov eax, 0x2989
pop ebx
add esp, 0x3c
ret