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

Disassembly:
push 0xffffffffffffffff
push 0x5acb89
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628d00]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
xor esi, esi
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esi
call fcn.004f6720
mov ebp, dword [esp + 0xf8]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0xf4], esi
call fcn.004f3de0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test eax, eax
setle bl
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov dword [esp + 0xf0], 0xffffffff
push esi
cmp ecx, 0x10
jb 0x51229c
call fcn.00493180
jmp 0x5122a1
call fcn.00493190
add esp, 4
test bl, bl
jne 0x512b3e
push 0
mov ecx, ebp
call fcn.004f3a90
test al, al
jne 0x512326
push 2
lea ecx, [esp + 0x24]
call fcn.004f6720
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
mov dword [esp + 0xf4], 1
call fcn.004f3de0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test eax, eax
sete bl
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0xf0], 0xffffffff
push esi
cmp eax, 0x10
jb 0x512317
call fcn.00493180
add esp, 4
mov al, bl
jmp 0x512b40
call fcn.00493190
add esp, 4
mov al, bl
jmp 0x512b40
push 3
lea ecx, [esp + 0x4c]
call fcn.004f6720
mov dword [esp + 0xf0], 2
mov dword [esp + 0x18], 0
push 4
lea ecx, [esp + 0x24]
call fcn.004f6720
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xf4], 3
call fcn.004aa500
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xfc], 4
call fcn.004a2f20
push ebp
push eax
mov byte [esp + 0x104], 5
call fcn.005111c0
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
add esp, 0x14
mov esi, eax
cmp esi, 1
sete byte [esp + 0x17]
xor eax, eax
mov edx, ecx
mov ebx, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov byte [esp + 0xf0], 4
push ebx
cmp ecx, 0x10
jb 0x5123ce
call fcn.00493180
jmp 0x5123d3
call fcn.00493190
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov edx, ecx
add edx, edx
add esp, 4
mov ebx, edi
xor eax, eax
add edx, edx
mov byte [esp + 0xf0], 3
rep stosd dword es:[edi], eax
push ebx
cmp edx, 0x10
jb 0x5123ff
call fcn.00493180
jmp 0x512404
call fcn.00493190
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor eax, eax
mov edx, ecx
mov ebx, edi
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
mov byte [esp + 0xf0], 2
push ebx
cmp eax, 0x10
jb 0x512433
call fcn.00493180
jmp 0x512438
call fcn.00493190
add esp, 4
cmp byte [esp + 0x17], 0
je 0x5124a8
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x40
jne 0x51245b
mov ecx, ebp
call fcn.004fd230
test al, al
jne 0x512472
lea ecx, [esp + 0x48]
call fcn.004fb2a0
lea ecx, [esp + 0x48]
call fcn.004fb2a0
jmp 0x512344
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov dword [esp + 0xf0], 0xffffffff
push esi
cmp ecx, 0x10
jb 0x512b36
call fcn.00493180
jmp 0x512b3b
test esi, esi
je 0x512a78
push 1
lea ecx, [esp + 0xd8]
call fcn.004f6720
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0x74]
push ebp
push eax
mov byte [esp + 0xfc], 6
call fcn.004a2ef0
add esp, 0xc
lea ecx, [esp + 0xd4]
mov byte [esp + 0xf0], 8
call fcn.004a2eb0
xor esi, esi
push esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], esi
call fcn.004f3a90
test al, al
jne 0x512517
inc esi
push esi
lea ecx, [esp + 0x74]
call fcn.004f3a90
test al, al
je 0x512504
mov dword [esp + 0x1c], esi
push esi
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x78]
call fcn.004fbd70
push ebp
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x100], 9
call fcn.005113f0
add esp, 0x10
push 2
lea ecx, [esp + 0x38]
mov byte [esp + 0xf4], 0xa
call fcn.004f6720
lea edx, [esp + 0x34]
mov ebx, 1
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 0xb
mov dword [esp + 0x1c], ebx
call fcn.004f3de0
lea esi, [ebx + 0xb]
test eax, eax
je 0x5125dc
push 2
lea ecx, [esp + 0x24]
call fcn.004f6720
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x88]
push ebp
push ecx
mov dword [esp + 0xfc], esi
mov dword [esp + 0x24], 3
call fcn.004a2f20
add esp, 0xc
mov ebx, 7
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0xf4], 0xd
mov dword [esp + 0x1c], ebx
call fcn.004f3de0
mov byte [esp + 0x17], 0
test eax, eax
jne 0x5125e1
mov byte [esp + 0x17], 1
mov dword [esp + 0xf0], esi
test bl, 4
je 0x512623
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
mov edx, ecx
add edx, edx
and ebx, 0xfffffffb
mov esi, edi
xor eax, eax
add edx, edx
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x51261b
call fcn.00493180
jmp 0x512620
call fcn.00493190
add esp, 4
mov dword [esp + 0xf0], 0xb
test bl, 2
je 0x512666
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
and ebx, 0xfffffffd
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push esi
cmp eax, 0x10
jb 0x51265e
call fcn.00493180
jmp 0x512663
call fcn.00493190
add esp, 4
mov dword [esp + 0xf0], 0xa
test bl, 1
je 0x5126a2
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x51269a
call fcn.00493180
jmp 0x51269f
call fcn.00493190
add esp, 4
cmp byte [esp + 0x17], 0
je 0x512792
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov edx, ecx
add edx, edx
mov esi, edi
xor eax, eax
add edx, edx
mov byte [esp + 0xf0], 9
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x5126d6
call fcn.00493180
jmp 0x5126db
call fcn.00493190
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
mov byte [esp + 0xf0], 8
push esi
cmp eax, 0x10
jb 0x512710
call fcn.00493180
jmp 0x512715
call fcn.00493190
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
mov byte [esp + 0xf0], 2
push esi
cmp ecx, 0x10
jb 0x512747
call fcn.00493180
jmp 0x51274c
call fcn.00493190
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov edx, ecx
add edx, edx
add esp, 4
mov esi, edi
xor eax, eax
add edx, edx
mov dword [esp + 0xf0], 0xffffffff
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x512783
call fcn.00493180
add esp, 4
mov al, 1
jmp 0x512b40
call fcn.00493190
add esp, 4
mov al, 1
jmp 0x512b40
mov eax, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], eax
jbe 0x512a16
push 2
lea ecx, [esp + 0x38]
call fcn.004f6720
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 0xe
call fcn.004aa500
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0xfc], 0xf
call fcn.004a2f20
push ebp
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x108], 0x10
call fcn.004a2fb0
add esp, 0x18
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 0x11
call fcn.004f6e90
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov byte [esp + 0xf0], 0x10
push esi
cmp ecx, 0x10
jb 0x512839
call fcn.00493180
jmp 0x51283e
call fcn.00493190
mov ecx, dword [esp + 0xcc]
mov edi, dword [esp + 0xd0]
mov edx, ecx
add edx, edx
add esp, 4
mov esi, edi
xor eax, eax
add edx, edx
mov byte [esp + 0xf0], 0xf
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x512870
call fcn.00493180
jmp 0x512875
call fcn.00493190
mov ecx, dword [esp + 0xb8]
mov edi, dword [esp + 0xbc]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
mov byte [esp + 0xf0], 0xe
push esi
cmp eax, 0x10
jb 0x5128aa
call fcn.00493180
jmp 0x5128af
call fcn.00493190
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
mov byte [esp + 0xf0], 0xa
push esi
cmp ecx, 0x10
jb 0x5128de
call fcn.00493180
jmp 0x5128e3
call fcn.00493190
add esp, 4
push 2
lea ecx, [esp + 0x38]
call fcn.004f6720
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xb0]
push ebp
push eax
mov byte [esp + 0xfc], 0x12
call fcn.004a2f20
add esp, 0xc
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 0x13
call fcn.004f3de0
mov ecx, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
test eax, eax
sete bl
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov byte [esp + 0xf0], 0x12
push esi
cmp ecx, 0x10
jb 0x512958
call fcn.00493180
jmp 0x51295d
call fcn.00493190
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov edx, ecx
add edx, edx
add esp, 4
mov esi, edi
xor eax, eax
add edx, edx
mov byte [esp + 0xf0], 0xa
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x512989
call fcn.00493180
jmp 0x51298e
call fcn.00493190
add esp, 4
test bl, bl
jne 0x5126ad
push 2
lea ecx, [esp + 0x88]
call fcn.004f6720
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 0x14
call fcn.004f3de0
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
test eax, eax
sete bl
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov byte [esp + 0xf0], 0xa
push esi
cmp ecx, 0x10
jb 0x5129f7
call fcn.00493180
jmp 0x5129fc
call fcn.00493190
add esp, 4
test bl, bl
jne 0x512a42
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x5127a5
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov byte [esp + 0xf0], 9
push esi
cmp eax, 0x10
jb 0x512a91
call fcn.00493180
jmp 0x512a96
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf0], 9
call fcn.004a2eb0
lea ecx, [esp + 0x98]
mov byte [esp + 0xf0], 8
call fcn.004a2eb0
lea ecx, [esp + 0x70]
mov byte [esp + 0xf0], 2
call fcn.004a2eb0
lea ecx, [esp + 0x48]
mov dword [esp + 0xf0], 0xffffffff
call fcn.004a2eb0
jmp 0x512b3e
call fcn.00493190
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
mov byte [esp + 0xf0], 8
push esi
cmp ecx, 0x10
jb 0x512acb
call fcn.00493180
jmp 0x512ad0
call fcn.00493190
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov edx, ecx
add edx, edx
add esp, 4
mov esi, edi
xor eax, eax
add edx, edx
mov byte [esp + 0xf0], 2
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x512aff
call fcn.00493180
jmp 0x512b04
call fcn.00493190
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
mov dword [esp + 0xf0], 0xffffffff
push esi
cmp eax, 0x10
jb 0x512b36
call fcn.00493180
jmp 0x512b3b
call fcn.00493190
add esp, 4
xor al, al
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret