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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], 0x80
mov dword [ebp - 0x20], pe_nt_image_headers32
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 0x60
mov dword [ebp - 0x10], 0xc0
mov dword [ebp - 0xc], 0x180
mov dword [ebp - 8], 1
cmp dword [ebp + 0xc], 0
je 0x51dc95
cmp dword [ebp + 8], 0
je 0x51dc95
cmp dword [0x673ea0], 0xe
jl 0x51d4cf
cmp dword [0x673ea0], 0x16
jg 0x51d4cf
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x49c], 0
mov dword [ebp - 4], 0
jmp 0x51d185
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jge 0x51d1cc
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x30]
test ecx, ecx
je 0x51d1ca
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x30]
cmp ecx, 0xff
je 0x51d1ca
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x49c]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x49c], eax
jmp 0x51d17c
push 3
mov edx, dword [ebp + 8]
add edx, 0xa
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054c7e0
add esp, 0xc
push 3
mov ecx, dword [ebp + 8]
add ecx, 0xd
push ecx
mov edx, dword [ebp + 0xc]
add edx, 3
push edx
call fcn.0054c7e0
add esp, 0xc
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x1c]
shl ecx, 0x18
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x1d]
shl eax, 0x10
add ecx, eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x1e]
shl eax, 8
add ecx, eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x1f]
add ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x100]
shl ecx, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x101]
add ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x102]
shl ecx, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x103]
add ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x135]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x135]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x4c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0xf]
mov byte [eax + 0x8d], dl
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x10]
push ecx
push 2
call fcn.00517509
add esp, 8
shl eax, 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x64], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xd]
and ecx, 1
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x86], dl
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0xd]
and edx, 2
test edx, edx
setne al
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x89], al
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x88], 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x89]
test ecx, ecx
jne 0x51d323
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0xd]
and eax, 4
test eax, eax
setne cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x88], cl
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xd]
and ecx, 8
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x8a], dl
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x89]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x88]
or edx, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x8a]
or edx, ecx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x87], dl
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0xa]
and edx, 0x20
test edx, edx
setne al
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x8b], al
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0xa]
and eax, 0x40
test eax, eax
setne cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x8c], cl
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xa]
and ecx, 0x80
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x94], dl
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x8c]
test edx, edx
je 0x51d421
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xb]
and ecx, 0x10
test ecx, ecx
je 0x51d3e5
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x90], 0xc0
jmp 0x51d41f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xb]
and ecx, 0x20
test ecx, ecx
je 0x51d403
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x90], 0x180
jmp 0x51d41f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x11]
push ecx
push 2
call fcn.00517509
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x90], eax
jmp 0x51d43d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x11]
push ecx
push 2
call fcn.00517509
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x90], eax
cmp dword [0x673ea0], 0x14
jne 0x51d465
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xd]
and ecx, 0x80
test ecx, ecx
je 0x51d465
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x90], 0x102
cmp dword [0x673ea0], 0x15
jne 0x51d482
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x1f]
and ecx, 1
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x85], cl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x14]
shl ecx, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x15]
add ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x498], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x18]
shl ecx, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x19]
add ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x60], ecx
jmp 0x51dc95
cmp dword [0x673ea0], 8
jl 0x51d975
cmp dword [0x673ea0], 0xd
jg 0x51d975
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x49c], 0
mov dword [ebp - 4], 0
jmp 0x51d508
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jge 0x51d54f
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x30]
test ecx, ecx
je 0x51d54d
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x30]
cmp ecx, 0xff
je 0x51d54d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x49c]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x49c], eax
jmp 0x51d4ff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [edx + 3], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 1]
mov byte [edx + 4], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 2]
mov byte [edx + 5], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 3]
mov byte [edx + 6], cl
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0xb]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0xf]
mov byte [edx + 0x10], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x10]
mov byte [edx + 0x11], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x11]
mov byte [edx + 0x12], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x12]
mov byte [edx + 0x13], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x13]
mov byte [edx + 0x14], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x14]
mov byte [edx + 0x15], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x15]
mov byte [edx + 0x16], cl
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x16]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x17]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x19]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x1a]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x1b]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x1c]
shl eax, 0x18
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x1d]
shl edx, 0x10
add eax, edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x1e]
shl edx, 8
add eax, edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x1f]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x130]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x131]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x132]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x133]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x134]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x135]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x136]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x137]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x138]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x150]
shl eax, 8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x151]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x152]
shl eax, 8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x153]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x154]
shl eax, 8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x155]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x156]
shl eax, 8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x157]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x158]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x159]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x15a]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x15b]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x15c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x15d]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x15e]
shl eax, 8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x15f]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
and eax, 1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x85], al
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
and eax, 1
neg eax
sbb eax, eax
neg eax
add eax, 1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x84], al
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
and eax, 2
test eax, eax
setne cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x86], cl
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 4
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x87], dl
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x87]
test edx, edx
je 0x51d8cd
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 4
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x88], dl
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x88]
neg edx
sbb edx, edx
inc edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x8a], dl
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x64]
shl edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x64], edx
jmp 0x51d8e1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x88], 0
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x8a], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0x10
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x8b], dl
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
sar edx, 6
add edx, 2
push edx
push 2
call fcn.00517509
add esp, 8
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x8d], al
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 1]
and eax, 1
add eax, 2
push eax
push 2
call fcn.00517509
add esp, 8
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x8e], al
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 1]
and eax, 2
test eax, eax
setne cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x94], cl
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 1]
sar ecx, 5
and ecx, 3
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + ecx*4 - 0x28]
mov dword [edx + 0x90], eax
jmp 0x51dc95
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x14]
shl edx, 0x18
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x15]
shl ecx, 0x10
add edx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x16]
shl ecx, 8
add edx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x17]
add edx, ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x80], edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], 0x400
cmp dword [0x673ea0], 6
jne 0x51d9f8
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 3]
and eax, 0x10
test eax, eax
je 0x51d9e9
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 3]
and edx, 8
neg edx
sbb edx, edx
and edx, 0x40
add edx, 0x40
mov dword [ebp - 0x2c], edx
jmp 0x51d9f0
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x51da2e
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 3]
and edx, 0x10
test edx, edx
je 0x51da10
mov dword [ebp - 0x34], pe_nt_image_headers32
jmp 0x51da28
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 3]
and ecx, 8
neg ecx
sbb ecx, ecx
and ecx, 0x40
add ecx, 0x40
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x58], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 3]
and edx, 4
test edx, edx
je 0x51da63
mov dword [ebp - 0x38], 8
jmp 0x51da7b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 3]
and ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x64], eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x6c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x78], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x58]
mov dword [ecx + 0x90], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 4]
and edx, 4
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x85], dl
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x84], 1
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 1]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 3]
mov byte [edx + 3], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 4]
mov byte [edx + 4], cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 5], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 3]
and ecx, 0x40
test ecx, ecx
setne dl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x86], dl
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 4]
and edx, 8
test edx, edx
setne al
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x87], al
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x87]
test eax, eax
je 0x51db9a
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 4]
and edx, 1
test edx, edx
setne al
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x8a], al
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x87]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x88], al
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 3]
and eax, 0x20
test eax, eax
setne cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x8b], cl
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x8d], 4
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x8e], 4
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 3]
and eax, 0x10
test eax, eax
je 0x51dbdf
mov dword [ebp - 0x3c], pe_nt_image_headers32
jmp 0x51dbf7
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 3]
and edx, 8
neg edx
sbb edx, edx
and edx, 0x40
add edx, 0x40
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x60], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 3]
and eax, 4
test eax, eax
je 0x51dc20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
shl edx, 3
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x60], edx
jmp 0x51dc3e
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 3]
and edx, 2
test edx, edx
je 0x51dc3e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x60]
shl ecx, 2
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x86]
test ecx, ecx
je 0x51dc5b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x60]
shl eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x87]
test eax, eax
je 0x51dc78
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
shl edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x85]
test edx, edx
je 0x51dc95
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x60]
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret